token

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTokenNotInitialized = fmt.Errorf("util-go/token.go - token not initialized")
)

Functions

func Generate

func Generate(userID interface{}) (string, error)

func SetTokenSecret

func SetTokenSecret(TokenSecret string)

func Validate

func Validate(tokenString string) (jwt.MapClaims, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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