jwt

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enter

type Enter struct{}

func (Enter) AnalyzeToken

func (e Enter) AnalyzeToken(token, jwtKey string) (*UserClaim, error)

func (Enter) GenerateToken

func (e Enter) GenerateToken(id int64, username string, second int, jwtKey string) (string, error)

type UserClaim

type UserClaim struct {
	Id       int64
	Username string
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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