auth

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JwtSecret []byte
	TokenAuth *jwtauth.JWTAuth
)

Functions

func CreateToken

func CreateToken(u *model.User) (string, error)

func InitTokenAuth

func InitTokenAuth(ds model.DataStore)

func TouchToken

func TouchToken(token *jwt.Token) (string, error)

func Validate

func Validate(tokenStr string) (jwt.MapClaims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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