jwt

package
v0.0.0-...-de9ab70 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnauthorized = errors.New("unauthorized")
	ErrTokenExpired = errors.New("token expired")
)

Functions

func GenerateTokenPair

func GenerateTokenPair(email string) (string, string, uuid.UUID, uuid.UUID, error)

Types

type MapClaims

type MapClaims = jwt.MapClaims

func ValidateToken

func ValidateToken(jwtToken string) (MapClaims, error)

Jump to

Keyboard shortcuts

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