authservice

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLike

type AppLike interface {
	DB() db.Client
	Key() string
	GetAuthProvider(string) fs.AuthProvider
}

type AuthService

type AuthService struct {
	DB              func() db.Client
	AppKey          func() string
	GetAuthProvider func(string) fs.AuthProvider
}

func New

func New(app AppLike) *AuthService

func (*AuthService) Callback

func (as *AuthService) Callback(c fs.Context, _ any) (u *userservice.LoginResponse, err error)

func (*AuthService) Login

func (as *AuthService) Login(c fs.Context, _ any) (_ any, err error)

Jump to

Keyboard shortcuts

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