auth

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJWT

func GenerateJWT(username string) (string, error)

func GenerateRefreshJWT

func GenerateRefreshJWT(username string) (string, error)

Types

type Claims

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

func ValidateJWT

func ValidateJWT(tokenString string) (*Claims, error)

Jump to

Keyboard shortcuts

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