jwt

package module
v0.0.0-...-4a6e3fb Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LibError          = "LibError"
	KeyAlreadyLoaded  = "KeyAlreadyLoaded"
	KeyNotLoaded      = "KeyNotLoaded"
	InvalidPrivateKey = "InvalidPrivateKey"
	InvalidToken      = "InvalidToken"
	InvalidTokenType  = "InvalidTokenType"
	TokenExpired      = "TokenExpired"
	JwtSignError      = "JwtSignError"
)

Variables

This section is empty.

Functions

func NewToken

func NewToken(data map[string]any, accessTime, refreshTime int64) (string, string, error)

func Use

func Use(privateKey string) error

func UseDynamic

func UseDynamic() error

func VerifyToken

func VerifyToken(token, token_type string) (map[string]any, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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