init(passwordHashVerifier:context:getUser:)

Initialize BasicAuthenticator middleware

BasicAuthenticator.swift:46
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