package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Dec 12, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GenerateToken generates a JWT token for a user with their details
type Claims struct {
Username string `json:"username"`
Email string `json:"email"`
FullName string `json:"full_name"`
jwt.RegisteredClaims
}
ValidateToken validates a JWT token and returns the claims
Source Files
¶
Click to show internal directories.
Click to hide internal directories.