helper

package
v0.0.0-...-3b6dc87 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SECRET_KEY string = os.Getenv("SECRET_KEY")

Functions

func GenerateAllTokens

func GenerateAllTokens(ID string, email string, name string) (signedToken string, err error)

user.Email, *user.Name, *user.ID

Types

type SignedDetails

type SignedDetails struct {
	ID    string
	Email string
	Name  string
	jwt.StandardClaims
}

func ValidateToken

func ValidateToken(signedToken string) (claims *SignedDetails, msg string)

Jump to

Keyboard shortcuts

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