//
pkg.gl
Category
github.com/GNF-Labs/millenium-lms-rest-api-backend
auth
package
0.0.0-20240906071932-56bfa2c3d8f0
Repository:
https://github.com/gnf-labs/millenium-lms-rest-api-backend.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
2
Files
42 SLOC
#
Functions
GenerateJWT
GenerateJWT generates a JSON Web Token (JWT) for a user after login.
VerifyJWT
VerifyJWT verifies a JSON Web Token (JWT) and returns the claims if the token is valid.
#
Structs
Claims
Claims represents the JWT claims, which includes the username and registered claims.