Categorygithub.com/samtech09/jwtauth
modulepackage
1.0.1
Repository: https://github.com/samtech09/jwtauth.git
Documentation: pkg.go.dev

# README

jwtauth

jwtauth is server side validation library for JWT tokens passed with requests to access JWT-protected resources at API server.

It extract JWT token from request, validate and return ClientInfo struct to be consumed by API server.

# Functions

InitValidator initialize JWT validator config and load public key.

# Structs

ClientInfo holds client info extracted from JWT token.
Validator holds config for JWT token validation along with public key.
ValidatorConfig holds config to initialize JWT validator.