package
0.0.0-20250309181522-4a0e66a86483
Repository: https://github.com/dhax/go-base.git
Documentation: pkg.go.dev

# Functions

AuthenticateRefreshJWT checks validity of refresh tokens and is only used for access token refresh and logout requests.
Authenticator is a default authentication middleware to enforce access from the Verifier middleware request context values.
ClaimsFromCtx retrieves the parsed AppClaims from request context.
ErrUnauthorized renders status 401 Unauthorized with custom error message.
NewTokenAuth configures and returns a JWT authentication instance.
No description provided by the author
RefreshTokenFromCtx retrieves the parsed refresh token from context.

# Variables

The list of jwt token errors presented to the end user.
The list of jwt token errors presented to the end user.
The list of jwt token errors presented to the end user.
The list of jwt token errors presented to the end user.

# Structs

AppClaims represent the claims parsed from JWT access token.
No description provided by the author
ErrResponse renderer type for handling all sorts of errors.
RefreshClaims represents the claims parsed from JWT refresh token.
Token holds refresh jwt information.
TokenAuth implements JWT authentication flow.