ServerSideSessionsConfig constructor
ServerSideSessionsConfig({})
Create a new user session configuration.
Implementation
ServerSideSessionsConfig({
required this.sessionKeyHashPepper,
this.fallbackSessionKeyHashPeppers = const [],
this.sessionKeySecretLength = 32,
this.sessionKeyHashSaltLength = 16,
this.defaultSessionLifetime,
this.defaultSessionInactivityTimeout,
}) {
_validateSessionKeyHashPepper(sessionKeyHashPepper);
for (final fallbackPepper in fallbackSessionKeyHashPeppers) {
_validateSessionKeyHashPepper(fallbackPepper);
}
_validateSessionLifetime(defaultSessionLifetime);
_validateSessionInactivityTimeout(defaultSessionInactivityTimeout);
}