auth

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserCtxKey = &contextKey{"user"}

Functions

This section is empty.

Types

type Auth added in v1.4.1

type Auth struct {
}

func New added in v1.4.1

func New() *Auth

func (Auth) FirebaseLoginMiddleware added in v1.4.1

func (a Auth) FirebaseLoginMiddleware(app *firebase.App) func(http.Handler) http.Handler

FirebaseLoginMiddleware ログイン後の時のMiddleware

func (Auth) NotLoginMiddleware added in v1.4.1

func (a Auth) NotLoginMiddleware() func(http.Handler) http.Handler

NotLoginMiddleware ログイン前の時のMiddleware

type User

type User struct {
	ID          string
	FirebaseUID string
}

func ForContext

func ForContext(ctx context.Context) *User

Jump to

Keyboard shortcuts

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