AuthenticationTokenConfig class

Configuration options for the JWT authentication module.

Constructors

AuthenticationTokenConfig.new({Duration accessTokenLifetime = const Duration(minutes: 10), Duration refreshTokenLifetime = const Duration(days: 14), String? issuer, int refreshTokenFixedSecretLength = 16, int refreshTokenRotatingSecretLength = 64, int refreshTokenRotatingSecretSaltLength = 16})
Create a new user profile configuration.

Properties

accessTokenLifetime Duration
The lifetime of access tokens.
final
hashCode int
The hash code for this object.
no setterinherited
issuer String?
The issuer set on the JWT access tokens.
final
refreshTokenFixedSecretLength int
The amount of random bytes used for the fixed secret part of each individual refresh token.
final
refreshTokenLifetime Duration
The lifetime of a refresh token.
final
refreshTokenRotatingSecretLength int
The amount of random bytes used for the rotating secret of the refresh token.
final
refreshTokenRotatingSecretSaltLength int
The amount of random bytes used to hash the rotation secret of the refresh token with.
final
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