DatabaseUserAuthenticator constructor

DatabaseUserAuthenticator({
  1. required DatabaseRepository database,
  2. required String authenticationDatabase,
  3. required UserAuthenticationGenerator authenticationGenerator,
  4. required AuthenticationSecretsRepository secretsRepository,
})

database, authenticationDatabase are both used to determine where to save and find the stored UserAuthentication

authenticationGenerator handles the generation and authentication of UserAuthentications

secretsRepository

Implementation

DatabaseUserAuthenticator({
  required this.database,
  required this.authenticationDatabase,
  required this.authenticationGenerator,
  required this.secretsRepository,
});