token

package
v0.0.0-...-17ad297 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func TokenGenerator

func TokenGenerator(email string, firstname string, lastname string, uid string) (signedtoken string, signedrefreshtoken string, err error)

func UpdateAllTokens

func UpdateAllTokens(signedtoken string, signedrefreshtoken string, userid string)

Types

type SignedDetails

type SignedDetails struct {
	Email      string
	First_Name string
	Last_Name  string
	Uid        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