auth

package
v0.0.0-...-a8cf2a2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(username string) (string, error)

Types

type Claims

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

func VerifyToken

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

Jump to

Keyboard shortcuts

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