google

package
v0.0.0-...-39079ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderKey = "google"
)

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(clientID string, clientSecret string, opts ...oauth.Option) (provider2.OAuthProvider, error)

func UnmarshalJSON

func UnmarshalJSON(data []byte) (provider2.UserInfo, error)

Types

type UserInfo

type UserInfo struct {
	Email         string `json:"email"`
	VerifiedEmail bool   `json:"verified_email"`
	Name          string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL