JwtStrategyOptions class

A class that represents the options for the JWT strategy

Inheritance
  • Object
  • StrategyOptions
  • JwtStrategyOptions

Constructors

JwtStrategyOptions.new(JWTKey secret, {required ExtractJwtFunction jwtFromRequest, bool checkNotBefore = true, bool checkExpiresIn = true, bool checkHeaderType = true, Duration? issueAt, Audience? audience, String? subject, String? issuer, String? jwtId})
Creates a new JwtStrategyOptions

Properties

audience Audience?
final
checkExpiresIn bool
final
checkHeaderType bool
final
checkNotBefore bool
final
hashCode int
The hash code for this object.
no setterinherited
issueAt Duration?
final
issuer String?
final
jwtFromRequest ExtractJwtFunction
final
jwtId String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret JWTKey
The secret to use for verifying the JWT
final
subject String?
final

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