auth

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	Parse(ctx *frame.Context, token string) error
	User(ctx *frame.Context, user User) error
	Login(ctx *frame.Context, user User) (token string, err error)
	LoginUsingID(ctx *frame.Context, id interface{}) (token string, err error)
	Refresh(ctx *frame.Context) (token string, err error)
	Logout(ctx *frame.Context) error
}

type User added in v1.0.25

type User interface {
	Authenticated() bool
}

Jump to

Keyboard shortcuts

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