jwt

package
v0.0.0-...-fdfd418 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseToken

func ReleaseToken(userId int64, username string) map[string]string

生成jwt

Types

type Claims

type Claims struct {
	UserId int64
	jwt.StandardClaims
}

func ParseToken

func ParseToken(tokenString string) (*jwt.Token, *Claims, error)

还原jwt

Jump to

Keyboard shortcuts

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