From b3f9a68f05ff3f8b323cd6917f1f237cdbc6edaa Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Mon, 1 Dec 2014 17:26:55 -0800 Subject: [PATCH] oauth2: fix lint errors Change-Id: I9cc4c61767be5e6eda189468430e9a89fe2f3796 --- jws/jws.go | 2 +- transport.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jws/jws.go b/jws/jws.go index d12d033..61cbfc5 100644 --- a/jws/jws.go +++ b/jws/jws.go @@ -20,7 +20,7 @@ import ( "time" ) -// The JWT claim set contains information about the JWT including the +// ClaimSet contains information about the JWT signature including the // permissions being requested (scopes), the target of the token, the issuer, // the time the token was issued, and the lifetime of the token. type ClaimSet struct { diff --git a/transport.go b/transport.go index 5062bd2..0192aac 100644 --- a/transport.go +++ b/transport.go @@ -19,16 +19,16 @@ const ( // the requests to access protected resources on the OAuth 2.0 // provider's backend. type Token struct { - // A token that authorizes and authenticates the requests. + // AccessToken is the token that authorizes and authenticates the requests. AccessToken string `json:"access_token"` - // Identifies the type of token returned. + // TokenType identifies the type of token returned. TokenType string `json:"token_type,omitempty"` - // A token that may be used to obtain a new access token. + // RefreshToken is a token that may be used to obtain a new access token. RefreshToken string `json:"refresh_token,omitempty"` - // The remaining lifetime of the access token. + // Expiry is the expiration datetime of the access token. Expiry time.Time `json:"expiry,omitempty"` // raw optionally contains extra metadata from the server