mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
oauth2: fix lint errors
Change-Id: I9cc4c61767be5e6eda189468430e9a89fe2f3796
This commit is contained in:
parent
3ec35f1969
commit
b3f9a68f05
@ -20,7 +20,7 @@ import (
|
|||||||
"time"
|
"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,
|
// permissions being requested (scopes), the target of the token, the issuer,
|
||||||
// the time the token was issued, and the lifetime of the token.
|
// the time the token was issued, and the lifetime of the token.
|
||||||
type ClaimSet struct {
|
type ClaimSet struct {
|
||||||
|
@ -19,16 +19,16 @@ const (
|
|||||||
// the requests to access protected resources on the OAuth 2.0
|
// the requests to access protected resources on the OAuth 2.0
|
||||||
// provider's backend.
|
// provider's backend.
|
||||||
type Token struct {
|
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"`
|
AccessToken string `json:"access_token"`
|
||||||
|
|
||||||
// Identifies the type of token returned.
|
// TokenType identifies the type of token returned.
|
||||||
TokenType string `json:"token_type,omitempty"`
|
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"`
|
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"`
|
Expiry time.Time `json:"expiry,omitempty"`
|
||||||
|
|
||||||
// raw optionally contains extra metadata from the server
|
// raw optionally contains extra metadata from the server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user