Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SECRET_KEY string = os.Getenv("SECRET_KEY")
Functions ¶
func GenerateAllTokens ¶
func UpdateAllTokens ¶
Types ¶
type SignedDetails ¶
type SignedDetails struct { Email string First_name string Last_name string User_id string jwt.StandardClaims }
func ValidateToken ¶
func ValidateToken(signedToken string) (claims *SignedDetails, err error)
Click to show internal directories.
Click to hide internal directories.