AuthTestSessionControl constructor

AuthTestSessionControl({
  1. required DateTime clock(),
  2. AuthSessionStrategy strategy = AuthSessionStrategy.session,
  3. Duration maximumAge = const Duration(hours: 1),
  4. 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;