Initializerhummingbird-auth 2.0.1HummingbirdBasicAuth
init(passwordHashVerifier:context:getUser:)
Initialize BasicAuthenticator middleware
init(passwordHashVerifier: Verifier = BcryptPasswordVerifier(), context: Context.Type = Context.self, getUser: @escaping (String, UserRepositoryContext) async throws -> Context.Identity?) where Repository == UserPasswordClosureRepository<Context.Identity>
Parameters
- passwordHashVerifier
password verifier
- context
Request context type
- getUser
Closure returning user type