//
pkg.gl
Category
github.com/7Chethan007/PESU-IO_GoLang_Final_Project
auth
middleware
package
0.0.0-20241114143144-3b15a8038e74
Repository:
https://github.com/7chethan007/pesu-io_golang_final_project.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
2
Files
89 SLOC
#
Functions
AuthMiddleware
AuthMiddleware checks for a valid JWT in the Authorization header.
GenerateJWT
GenerateJWT generates a JWT token for a given user ID.
ParseJWT
ParseJWT parses and validates a JWT token.
RoleMiddleware
No description provided by the author