forked from Mirrors/oauth2
google: set expiry on JWTAccessTokenSource
Change-Id: Ib1ff6511ce38e17711486743601241285a34f164 Reviewed-on: https://go-review.googlesource.com/14934 Reviewed-by: Julien Boeuf <jboeuf@google.com> Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
82de3fe653
commit
166f7cf994
|
@ -67,5 +67,5 @@ func (ts *jwtAccessTokenSource) Token() (*oauth2.Token, error) {
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("google: could not encode JWT: %v", err)
|
||||
}
|
||||
return &oauth2.Token{AccessToken: msg, TokenType: "Bearer"}, nil
|
||||
return &oauth2.Token{AccessToken: msg, TokenType: "Bearer", Expiry: exp}, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue