AuthConfig class final

AUTH_* / JWT_* configuration (config/auth.php parity).

Implemented types

Constructors

AuthConfig({String defaultGuard = 'token', Duration? tokenExpiration, String tokenTable = 'personal_access_tokens', String tokenPrefix = '', String? jwtSecret, JwtAlgorithm jwtAlgorithm = .hs256, Duration jwtTtl = const Duration(minutes: 60), Duration jwtLeeway = const Duration(seconds: 30), String? jwtIssuer, String? jwtAudience, String? jwtPublicKey, String? jwtPrivateKey, String? jwtKid})
const
AuthConfig.fromEnv(Env env)
factory

Properties

defaultGuard → String
final
hashCode → int
The hash code for this object.
no setterinherited
jwtAlgorithm → JwtAlgorithm
final
jwtAudience → String?
final
jwtIssuer → String?
final
jwtKid → String?
final
jwtLeeway → Duration
final
jwtPrivateKey → String?
Base64 Ed25519 32-byte seed (EdDSA signing).
final
jwtPublicKey → String?
Base64 Ed25519 public key (EdDSA).
final
jwtSecret → String?
HS256 secret; falls back to APP_KEY when unset.
final
jwtTtl → Duration
final
key → String
Top-level key of the section, e.g. app or database.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenExpiration → Duration?
Sanctum-style global token lifetime (AUTH_TOKEN_EXPIRATION minutes).
final
tokenPrefix → String
Prefix for new token secrets (SANCTUM_TOKEN_PREFIX, as in Sanctum).
final
tokenTable → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
Plain-map projection used for dot-notation access.
override
toString() → String
A string representation of this object.
inherited

Operators

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