token

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(username, password string) (string, error)

JWT返回令牌token

Types

type Claims

type Claims struct {
	UserName string
	Password string
	jwt.StandardClaims
}

func ParseToken

func ParseToken(tokenStr string) (*Claims, error)

JWT解析令牌token并验证

Jump to

Keyboard shortcuts

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