UNPKG

@mercury-labs/auth

Version:

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

10 lines (9 loc) 524 B
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common'; import { Observable } from 'rxjs'; import { IAuthDefinitions, IAuthResponse, IHttpResponse } from '../../domain'; export declare class CookieAuthInterceptor implements NestInterceptor { protected readonly definitions: IAuthDefinitions; constructor(definitions: IAuthDefinitions); intercept(context: ExecutionContext, next: CallHandler): Observable<any>; setCookieToken(res: IHttpResponse, tokenResponse: IAuthResponse): any; }