Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAuthorizationCode = fmt.Errorf("invalid authorization code") ErrInvalidIDToken = fmt.Errorf("invalid ID token") )
Functions ¶
This section is empty.
Types ¶
type GoogleSignin ¶
type GoogleSignin struct {
// contains filtered or unexported fields
}
func NewGoogleSignin ¶
func NewGoogleSignin( clientID string, clientSecret string, redirectURL string, scopes []string, ) *GoogleSignin
func (*GoogleSignin) Exchange ¶
func (g *GoogleSignin) Exchange(ctx context.Context, code string) (*GoogleUser, error)
func (*GoogleSignin) GetAuthURL ¶
func (g *GoogleSignin) GetAuthURL(state string) string
func (*GoogleSignin) VerifyGoogleIDToken ¶
func (g *GoogleSignin) VerifyGoogleIDToken( ctx context.Context, tokenString string, ) (*GoogleUser, error)
Click to show internal directories.
Click to hide internal directories.