Skip to content

Commit 117a894

Browse files
committed
x/oauth2: clarify that ExpiresIn is not automatically populated by the package
Related golang/go#61417
1 parent 3e64809 commit 117a894

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

token.go

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ type Token struct {
5454
// relative to an unknown time base approximately around "now".
5555
// It is the application's responsibility to populate
5656
// `Expiry` from `ExpiresIn` when required.
57+
// The oauth2 package does not automatically populate
58+
// `ExpiresIn` even if the server returns an "expires_in" field.
5759
ExpiresIn int64 `json:"expires_in,omitempty"`
5860

5961
// raw optionally contains extra metadata from the server

0 commit comments

Comments
 (0)