auth

package
v0.0.0-...-fd774e2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyUserID       = "id"
	KeyTokenExpired = "exp"
	KeyUser         = "user"
)

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(next http.Handler) http.Handler

func GenerateToken

func GenerateToken(user *models.User) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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