ServerSideSessionsConfigFromPasswords constructor
ServerSideSessionsConfigFromPasswords({
- List<
String> fallbackSessionKeyHashPeppers = const [], - int sessionKeySecretLength = 32,
- int sessionKeyHashSaltLength = 16,
- Duration? defaultSessionLifetime,
- Duration? defaultSessionInactivityTimeout,
- Future<
void> onSessionCreated(- Session session, {
- required UuidValue authUserId,
- required UuidValue serverSideSessionId,
- required Transaction? transaction,
Creates a new ServerSideSessionsConfigFromPasswords instance.
Implementation
ServerSideSessionsConfigFromPasswords({
super.fallbackSessionKeyHashPeppers,
super.sessionKeySecretLength,
super.sessionKeyHashSaltLength,
super.defaultSessionLifetime,
super.defaultSessionInactivityTimeout,
super.onSessionCreated,
}) : super(
sessionKeyHashPepper: Serverpod.instance.getPasswordOrThrow(
'serverSideSessionKeyHashPepper',
),
);