Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGoogleAuthenticationFailed = errors.New("invalid response from google API")
Functions ¶
This section is empty.
Types ¶
type GoogleOAuthService ¶
type GoogleOAuthService struct { ClientID string ClientSecret string ClientCallbackURL string // contains filtered or unexported fields }
func NewGoogleOAuthService ¶
func (*GoogleOAuthService) AuthenticateUserWithToken ¶
func (g *GoogleOAuthService) AuthenticateUserWithToken(ctx context.Context, tokenType string, token string) (*GoogleUserInfo, error)
type GoogleUserInfo ¶
type GoogleUserInfo struct { Sub string `json:"sub"` Name string `json:"name"` GivenName string `json:"given_name"` FamilyName string `json:"family_name"` Profile string `json:"profile"` Picture string `json:"picture"` Email string `json:"email"` VerifiedEmail bool `json:"verified_email"` HD string `json:"hd"` }
Click to show internal directories.
Click to hide internal directories.