InMemoryAuthTwoFactorBackend constructor
InMemoryAuthTwoFactorBackend({
- InMemoryAuthTwoFactorStore? factorStore,
- InMemoryAuthTwoFactorChallengeStore? challengeStore,
- InMemoryAuthTwoFactorTrustedDeviceStore? trustedDeviceStore,
- InMemoryAuthTwoFactorStepUpStore? stepUpStore,
- AuthTwoFactorFaultInjector? faultInjector,
- DateTime clock()?,
Creates a transactional in-memory two-factor backend.
Individual stores may be supplied to inspect or seed state in tests. If omitted, bounded in-memory stores are created for each capability.
Implementation
InMemoryAuthTwoFactorBackend({
InMemoryAuthTwoFactorStore? factorStore,
InMemoryAuthTwoFactorChallengeStore? challengeStore,
InMemoryAuthTwoFactorTrustedDeviceStore? trustedDeviceStore,
InMemoryAuthTwoFactorStepUpStore? stepUpStore,
this.faultInjector,
DateTime Function()? clock,
}) : factorStore = factorStore ?? InMemoryAuthTwoFactorStore(),
challengeStore =
challengeStore ?? InMemoryAuthTwoFactorChallengeStore(clock: clock),
trustedDeviceStore =
trustedDeviceStore ??
InMemoryAuthTwoFactorTrustedDeviceStore(clock: clock),
stepUpStore =
stepUpStore ?? InMemoryAuthTwoFactorStepUpStore(clock: clock);