google

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnregisteredRedirectURL = errors.New("google: unregistered redirectURL")
)

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

func NewAuthenticator

func NewAuthenticator(
	config *auth.GoogleConfig,
	signer token.Signer,
	logger *zap.Logger,
) *Authenticator

func (Authenticator) Exchange

func (a Authenticator) Exchange(
	ctx context.Context,
	code, redirectURL string,
) (*auth.UserInfo, error)

func (Authenticator) Login

func (a Authenticator) Login(
	ctx context.Context,
	state, redirectURL string,
) (string, error)

Jump to

Keyboard shortcuts

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