Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureValidToken ¶ added in v0.25.0
EnsureValidToken is a middleware that will check the validity of our JWT.
func GetUserProfile ¶ added in v0.25.0
Types ¶
type CustomClaims ¶ added in v0.25.0
CustomClaims contains custom data we want from the token.
type Profile ¶
type Profile struct { GivenName string `json:"given_name"` Picture string `json:"picture"` Issuer string `json:"iss"` Audience string `json:"aud"` IssuedAt float64 `json:"iat"` Subject string `json:"sub"` FamilyName string `json:"family_name"` Nickname string `json:"nickname"` Name string `json:"name"` Locale string `json:"locale"` UpdatedAt string `json:"updated_at"` ExpiresAt float64 `json:"exp"` SessionID string `json:"sid"` }
Click to show internal directories.
Click to hide internal directories.