jwt

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(params Params, identifier interface{}, withExpired bool) (string, interface{}, error)

func ParsingToken

func ParsingToken(secretKey []byte, tokenString string) (*jwt.Token, error)

Types

type Params

type Params struct {
	SecretKey  []byte
	Expiration int64
}

Jump to

Keyboard shortcuts

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