jwt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJWT

func GenerateJWT() (string, bool)

GenerateJWT generates a new JSON Web Token (JWT) with a 5-minute expiration time

func RefreshToken

func RefreshToken(tokenType string) bool

RefreshToken refreshes the JWT by generating a new token and updating it in Redis

Types

This section is empty.

Jump to

Keyboard shortcuts

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