auth

package
v0.0.0-...-52cd3d9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 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(ID uint64) (string, error)

func GetJWTSecret

func GetJWTSecret() []byte

Types

type Claims

type Claims struct {
	UserID uint64 `json:"user_id"`
	jwt.RegisteredClaims
}

func ParseToken

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

Jump to

Keyboard shortcuts

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