jwt

package module
v0.0.0-...-23cacc2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTTokenSecret string = "Yjh@hhvycn"

/you must change the secret

Functions

func CreateJWTToken

func CreateJWTToken(minutes int, data JwtParams) (string, error)

Types

type JwtParams

type JwtParams map[string]string

type JwtTokenData

type JwtTokenData struct {
	jwtu.StandardClaims
	Data JwtParams `json:"data"`
}

func ParseJWTToken

func ParseJWTToken(token string) (*JwtTokenData, error)

Jump to

Keyboard shortcuts

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