Documentation
¶
Overview ¶
Package cyptohmac provides middleware for verifying JWT tokens using HMACSHA256. It ensures that incoming requests are properly authenticated before proceeding to the next handler. Author: Daniel Chahla Twitter: @dchahla Version: v1.0.2
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiddlewareFunc ¶
MiddlewareFunc represents a middleware function that takes an http.Handler and returns an http.Handler.
func Verify ¶
func Verify(HMACSHA256Secret string) MiddlewareFunc
Verify is a middleware that verifies JWT tokens using HMACSHA256. It takes in an HMACSHA256 secret string (your-256-bit-secret).
Click to show internal directories.
Click to hide internal directories.