ExtractJwt class

A class that contains functions to extract the JWT from a request

Constructors

ExtractJwt.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromAuthHeaderAsBearerToken() String? Function(StrategyRequest request)
Extracts the JWT from the headers using the 'bearer' schema
fromAuthSchema(String schema) String? Function(StrategyRequest request)
Extracts the JWT from the headers using a schema
fromBody(String paramName) String? Function(StrategyRequest request)
Extracts the JWT from the body
fromCookies(String cookieName) String? Function(StrategyRequest request)
Extracts the JWT from the cookies
fromHeaders(String headerName) String? Function(StrategyRequest request)
Extracts the JWT from the headers
fromQueryParams(String paramName) String? Function(StrategyRequest request)
Extracts the JWT from the query parameters