UNPKG

@mercury-labs/auth

Version:

Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.

5 lines (4 loc) 294 B
import { ExecutionContext } from '@nestjs/common'; import type { IAuthUserEntityForResponse } from '../../domain'; export declare function currentUserDecoratorFactory(data: unknown, ctx: ExecutionContext): IAuthUserEntityForResponse; export declare const CurrentUser: () => ParameterDecorator;