@mercury-labs/nest-auth
Version:
Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.
7 lines (6 loc) • 409 B
TypeScript
import { IAuthDefinitions, IAuthWithTokenResponse, IHttpResponse, IJwtTokenResponse } from '../../../domain';
type IMapKeys<T> = Partial<{
[responseKey in keyof T]: string;
}>;
export declare const transferTokenFromResponseToCookie: (response: IHttpResponse, definitions: IAuthDefinitions) => (authResponse: IAuthWithTokenResponse, mapKeys: IMapKeys<IJwtTokenResponse>) => Record<string, any>;
export {};