socialauth

package
v0.0.0-...-d877d14 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SocialAuthProvider

type SocialAuthProvider interface {
	User(context.Context, *oauth2.Token) (User, error)
	Validate(context.Context, ValidateOptions) (*oauth2.Token, error)
}

func NewGoogle

func NewGoogle(cfg config.Config) SocialAuthProvider

type User

type User struct {
	Email string `json:"email,omitempty"`
	Name  string `json:"name,omitempty"`
}

type ValidateOptions

type ValidateOptions struct {
	Code string
}

Directories

Path Synopsis
Package socialauth_mocks is a generated GoMock package.
Package socialauth_mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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