auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNewJWToken

func GenerateNewJWToken(userId string) (string, error)

Generate a new JWT token for given user ID

func RetrieveUserIdFromJWTToken

func RetrieveUserIdFromJWTToken(tokenString string) (string, error)

Types

type Claims

type Claims struct {
	UserId string `json:"user_id"`
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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