@mercury-labs/nest-auth
Version:
Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.
7 lines (6 loc) • 630 B
TypeScript
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
import type { IAuthResponse, IAuthUserEntityForResponse } from '../../domain';
export declare function currentUserDecoratorFactory(__: unknown, context: ExecutionContext): IAuthResponse;
export declare function currentUserWithoutTokenDecoratorFactory(data: unknown, context: ExecutionContext): IAuthUserEntityForResponse;
export declare const CurrentUser: ReturnType<typeof createParamDecorator<any, any, IAuthUserEntityForResponse>>;
export declare const CurrentUserWithToken: ReturnType<typeof createParamDecorator<any, any, IAuthUserEntityForResponse>>;