Skip to content

Instantly share code, notes, and snippets.

@atultw
Created May 11, 2021 00:22
Show Gist options
  • Save atultw/da74641366d6e7b81d2a087e5edf8392 to your computer and use it in GitHub Desktop.
Save atultw/da74641366d6e7b81d2a087e5edf8392 to your computer and use it in GitHub Desktop.
golang struct type for auth0 jwt
type Auth0Token struct {
Iss string `json:"iss"`
Sub string `json:"sub"`
Aud string `json:"aud"`
Exp int `json:"exp"`
Iat int `json:"iat"`
Name string `json:"name"`
GivenName string `json:"given_name"`
FamilyName string `json:"family_name"`
Gender string `json:"gender"`
Birthdate string `json:"birthdate"`
Email string `json:"email"`
Picture string `json:"picture"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment