cyptohmac

package module
v0.0.0-...-b53f512 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

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

type MiddlewareFunc func(http.Handler) http.Handler

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL