jwtUtils

package
v0.0.0-...-17760c8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const JWT_EXPIRATION_TIME = time.Hour * 24

Variables

This section is empty.

Functions

func NewJwt

func NewJwt(id uuid.UUID) (string, error)

Types

type JWTClaims

type JWTClaims struct {
	ID uuid.UUID
	jwt.StandardClaims
	// contains filtered or unexported fields
}

func GetAndParseJwt

func GetAndParseJwt(c *fiber.Ctx) (*JWTClaims, error)

func ParseJwt

func ParseJwt(tokenString string) (*JWTClaims, error)

Jump to

Keyboard shortcuts

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