@mercury-labs/auth
Version:
Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.
6 lines (5 loc) • 545 B
TypeScript
import { ExecutionContext } from '@nestjs/common';
export declare function generateExecutionContextForJwtStrategy(accessToken: string): ExecutionContext;
export declare function generateExecutionContextForRefreshTokenStrategy(refreshToken: string): ExecutionContext;
export declare function generateExecutionContextForBasicAuth(username: string, password: string): ExecutionContext;
export declare function generateExecutionContextForLocalAuth(username: string, password: string, usernameField: string, passwordField: string): ExecutionContext;