Skip to main content

Module api

Module api 

Source
Expand description

§JWT API

This module contains the public API for the JWT library including parsers, providers, and validators.

§Primary types

Modules§

error
JWT Error Types
model
JWT Data Models

Structs§

JWTClaimsParser
This parser receives an untrusted JWT token (validation should be done previously using a SignatureValidator) and results in the content of the JWT extracted into a JWTClaims. If parsing fails, it results in a JWTError.
JwtGenerator
Helper to generate JWT tokens
SignatureValidator
Main signature validator implementation. It receives the specifications of the signature check:
TokenProvider
Strategies to retrieve the JWT token from the incoming HTTP requests context.

Enums§

GeneratorError
Error type for JWT generator operations