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:
Andrew Gerrand 2015-09-24 14:44:22 +10:00
parent 82de3fe653
commit 166f7cf994
1 changed files with 1 additions and 1 deletions

View File

@ -67,5 +67,5 @@ func (ts *jwtAccessTokenSource) Token() (*oauth2.Token, error) {
if err != nil { if err != nil {
return nil, fmt.Errorf("google: could not encode JWT: %v", err) 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
} }