jwt

package
v0.0.0-...-96504fd Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenToken

func GenToken(info string, key string, expire int) (accessToken, refreshToken string, err error)

func GetToken

func GetToken(c *znet.Context) string

Types

type Info

type Info struct {
	jwt.StandardClaims
	Info      string
	IsRefresh bool
}

func Parse

func Parse(token string, tokenKey string) (*Info, error)

Jump to

Keyboard shortcuts

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