auth

package
v0.0.0-...-f54c3d6 Latest Latest
Warning

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

Go to latest
Published: Mar 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 GenerateJWT

func GenerateJWT(id string, email string) (tokenString string, err error)

func ValidateToken

func ValidateToken(signedToken string) (err error)

Types

type JWTClaim

type JWTClaim struct {
	Id    string `json:"id"`
	Email string `json:"email"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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