Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ISS_1 = "accounts.google.com"
View Source
var ISS_2 = "https://accounts.google.com"
View Source
var PUBLIC_KEY_URL = "https://www.googleapis.com/oauth2/v1/certs"
Functions ¶
Types ¶
type GoogleClaims ¶
type GoogleClaims struct { UserID string `json:"sub"` Email string `json:"email"` FirstName string `json:"given_name"` LastName string `json:"family_name"` Picture string `json:"picture"` jwt.RegisteredClaims }
func ValidateGoogleJWT ¶
func ValidateGoogleJWT(tokenString string) (GoogleClaims, error)
Click to show internal directories.
Click to hide internal directories.