jwt

package
v0.0.0-...-4ad83ff Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(secretKey string, data interface{}) (string, error)

Generate generates a JSON Web Token with an 8-hour expiration

func ValidateToken

func ValidateToken(tokenString, secretKey string) (jwt.MapClaims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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