@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) • 487 B
TypeScript
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common';
import { Observable } from 'rxjs';
import { IAuthDefinitions, IHttpResponse } from '../../domain';
export declare class ClearAuthCookieInterceptor implements NestInterceptor {
protected readonly definitions: IAuthDefinitions;
constructor(definitions: IAuthDefinitions);
intercept(context: ExecutionContext, next: CallHandler): Observable<any>;
clearAuthCookies(res: IHttpResponse): void;
}