@minimaltech/node-infra
Version:
Minimal Technology NodeJS Infrastructure - Loopback 4 Framework
13 lines (12 loc) • 560 B
TypeScript
import { TInjectionGetter } from '../../../common';
import { Client, Falsey, PasswordModel, User } from '@node-oauth/oauth2-server';
import { AbstractOAuth2AuthenticationHandler } from './base';
export declare class OAuth2PasswordHandler extends AbstractOAuth2AuthenticationHandler implements PasswordModel {
constructor(opts: {
scope?: string;
authServiceKey: string;
injectionGetter: TInjectionGetter;
serviceKey: string;
});
getUser(username: string, password: string, _client: Client): Promise<User | Falsey>;
}