tokens

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorExpiredToken = errors.New("token is expired")
	ErrorInvalidToken = errors.New("token is invalid")
)

Functions

func CreateEmptyUserToken

func CreateEmptyUserToken() userToken

CreateEmptyUserToken creates an empty userToken for the Validate() method.

func CreateUserToken

func CreateUserToken(id uint, expiration time.Duration) userToken

CreateUserToken creates a userToken with provided information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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