jwt

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: AGPL-3.0-or-later 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