Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInvalidToken = errors.New("token couldn't be parsed or validated") ErrorInvalidIssuer = errors.New("incorrect issuer claim") )
Functions ¶
This section is empty.
Types ¶
type GoogleTokenClaims ¶
type GoogleTokenClaims struct { FirstName string `json:"given_name"` LastName string `json:"family_name"` PhotoUrl string `json:"picture"` Name string `json:"name"` Email string `json:"email"` EmailVerified bool `json:"email_verified"` jwt.StandardClaims }
func GetIdentityFromToken ¶
func GetIdentityFromToken(token string) (*GoogleTokenClaims, error)
type JSONWebKey ¶
type JSONWebKeys ¶
type JSONWebKeys struct {
Keys []JSONWebKey `json:"keys"`
}
Click to show internal directories.
Click to hide internal directories.