UNPKG

@mercury-labs/nest-auth

Version:

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

11 lines (10 loc) 704 B
import { IQueryHandler } from '@nestjs/cqrs'; import { GetUserByJwtTokenAction, IAuthResponse } from '../../../domain'; import { GetCurrentUserByAccessTokenQuery } from '../get-current-user-by-access-token.query'; import { JwtService } from '@nestjs/jwt'; export declare class GetCurrentUserByAccessTokenQueryHandler implements IQueryHandler<GetCurrentUserByAccessTokenQuery, IAuthResponse | null> { protected readonly action: GetUserByJwtTokenAction; protected readonly jwt: JwtService; constructor(action: GetUserByJwtTokenAction, jwt: JwtService); execute(query: GetCurrentUserByAccessTokenQuery): Promise<IAuthResponse<import("../../../domain").IAuthUserEntityForResponse> | null>; }