Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleWare ¶
middleware to check if the user is authenticated
Types ¶
type Claims ¶
type Claims struct { Iss string `json:"iss"` Azp string `json:"azp"` Aud string `json:"aud"` Sub string `json:"sub"` Email string `json:"email"` EmailVerified bool `json:"email_verified"` AtHash string `json:"at_hash"` Name string `json:"name"` Picture string `json:"picture"` GivenName string `json:"given_name"` FamilyName string `json:"family_name"` Locale string `json:"locale"` Iat int `json:"iat"` Exp int `json:"exp"` }
Click to show internal directories.
Click to hide internal directories.