@minimaltech/node-infra
Version:
Minimal Technology NodeJS Infrastructure - Loopback 4 Framework
14 lines (13 loc) • 492 B
TypeScript
import { AuthenticationStrategy } from '@loopback/authentication';
import { Request } from '@loopback/rest';
import { BasicTokenService } from './basic-token.service';
export declare class BasicAuthenticationStrategy implements AuthenticationStrategy {
private service;
name: string;
constructor(service: BasicTokenService);
extractCredentials(request: Request): {
username: string;
password: string;
};
authenticate(request: Request): Promise<any>;
}