Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SECRET_KEY = os.Getenv("JWT_SECRET_KEY")
Functions ¶
func GenerateTokens ¶
func UpdateAllTokens ¶
func UpdateAllTokens(signedToken, signedRefreshToken, userID string)
Types ¶
type SignedDetails ¶
type SignedDetails struct { Email string FirstName string LastName string UserID string jwt.RegisteredClaims }
func ValidateToken ¶
func ValidateToken(signedToken string) (claims *SignedDetails, msg string)
Click to show internal directories.
Click to hide internal directories.