AuthTestSessionControl constructor
AuthTestSessionControl({
- required DateTime clock(),
- AuthSessionStrategy strategy = AuthSessionStrategy.session,
- Duration maximumAge = const Duration(hours: 1),
- String? currentSessionId = 'fixture-session',
Creates a session control using clock for issued expiration times.
Implementation
AuthTestSessionControl({
required DateTime Function() clock,
this.strategy = AuthSessionStrategy.session,
this.maximumAge = const Duration(hours: 1),
this.currentSessionId = 'fixture-session',
}) : _clock = clock;