We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16a9973 commit 3e64809Copy full SHA for 3e64809
token.go
@@ -49,6 +49,13 @@ type Token struct {
49
// mechanisms for that TokenSource will not be used.
50
Expiry time.Time `json:"expiry,omitempty"`
51
52
+ // ExpiresIn is the OAuth2 wire format "expires_in" field,
53
+ // which specifies how many seconds later the token expires,
54
+ // relative to an unknown time base approximately around "now".
55
+ // It is the application's responsibility to populate
56
+ // `Expiry` from `ExpiresIn` when required.
57
+ ExpiresIn int64 `json:"expires_in,omitempty"`
58
+
59
// raw optionally contains extra metadata from the server
60
// when updating a token.
61
raw interface{}
0 commit comments