token

package
v0.0.0-...-3c94e27 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(value string, secretKey string) (string, error)

Types

type CustomClaims

type CustomClaims struct {
	// You can define custom fields here
	Value string `json:"value"`
	jwt.StandardClaims
}

func VerifyToken

func VerifyToken(tokenString string, secretKey string) (*CustomClaims, error)

Jump to

Keyboard shortcuts

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