oauthgoogle

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAvailable = errors.New("oauth_google_not_available")

Functions

This section is empty.

Types

type Provider

type Provider struct{}

func Current

func Current() *Provider

func (*Provider) Available

func (p *Provider) Available() bool

func (*Provider) Callback

func (p *Provider) Callback(ctx context.Context, code, verifier string) (*UserInfo, error)

func (*Provider) Start

func (p *Provider) Start(w http.ResponseWriter, state, verifier string)

type UserInfo

type UserInfo struct {
	Provider      string
	Subject       string
	Email         string
	VerifiedEmail bool
}

Jump to

Keyboard shortcuts

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