UNPKG

@cityssm/authentication-helper

Version:

Handles the authentication requests for web applications.

10 lines (9 loc) 276 B
export class FunctionAuthenticator { #authenticateFunction; constructor(config) { this.#authenticateFunction = config.authenticate; } async authenticate(userName, password) { return await this.#authenticateFunction(userName, password); } }