Documentation ¶
Index ¶
- func GetGoogleOauthRedirectURL() (string, error)
- func GetGoogleOauthState() (string, error)
- func GetGoogleOauthTokenByCode(code string) (*oauth2.Token, error)
- func GetGoogleOauthURL() (string, error)
- func IsValidGoogleOauthState(state string) error
- func ValidateGoogleOauthIDToken(idToken string) (*idtoken.Payload, error)
- type GoogleUserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGoogleOauthState ¶
func GetGoogleOauthURL ¶
func IsValidGoogleOauthState ¶
Types ¶
type GoogleUserInfo ¶
type GoogleUserInfo struct { Sub string `json:"sub"` Name string `json:"name"` GivenName string `json:"given_name"` Picture string `json:"picture"` Email string `json:"email"` EmailVerified bool `json:"email_verified"` Locale string `json:"locale"` }
func GetUserInfoByToken ¶
func GetUserInfoByToken(token string) (*GoogleUserInfo, error)
Click to show internal directories.
Click to hide internal directories.