jwt

package
v0.0.0-...-21d8ee5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const TokenExpiryLengthHours = 8

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(jwtSecret string, username string) (string, error)

func ValidateTokenString

func ValidateTokenString(jwtSecret string, tokenString string) (*string, error)

Types

type Claims

type Claims struct {
	jwt.StandardClaims
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

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