UNPKG

@mercury-labs/nest-auth

Version:

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

9 lines (8 loc) 610 B
import { IQueryHandler } from '@nestjs/cqrs'; import { GetUserByApiKeyAction, IAuthUserEntityForResponse } from '../../../domain'; import { GetCurrentUserByApiKeyQuery } from '../get-current-user-by-api-key.query'; export declare class GetCurrentUserByApiKeyQueryHandler implements IQueryHandler<GetCurrentUserByApiKeyQuery, IAuthUserEntityForResponse | undefined> { protected readonly action: GetUserByApiKeyAction; constructor(action: GetUserByApiKeyAction); execute(query: GetCurrentUserByApiKeyQuery): Promise<import("../../../domain").IAuthResponse<IAuthUserEntityForResponse> | undefined>; }