auth

package
v0.0.0-...-9fd81f0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSession      = errors.New("not authenticated")
	ErrSessionExpired = errors.New("session expired")
)

Errors that can be returned by IsAuthenticated

Functions

func Init

func Init(env *env.Env)

func IsAuthenticated

func IsAuthenticated(ctx context.Context, env *env.Env, c *http.Cookie) (*model.User, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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