ServerSideSessionsConfigFromPasswords constructor

ServerSideSessionsConfigFromPasswords({
  1. List<String> fallbackSessionKeyHashPeppers = const [],
  2. int sessionKeySecretLength = 32,
  3. int sessionKeyHashSaltLength = 16,
  4. Duration? defaultSessionLifetime,
  5. Duration? defaultSessionInactivityTimeout,
})

Creates a new ServerSideSessionsConfigFromPasswords instance.

Implementation

ServerSideSessionsConfigFromPasswords({
  super.fallbackSessionKeyHashPeppers,
  super.sessionKeySecretLength,
  super.sessionKeyHashSaltLength,
  super.defaultSessionLifetime,
  super.defaultSessionInactivityTimeout,
}) : super(
       sessionKeyHashPepper: Serverpod.instance.getPasswordOrThrow(
         'serverSideSessionKeyHashPepper',
       ),
     );