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) 1.22 kB
import { JwtFromRequestFunction } from 'passport-jwt'; import { AuthTransferTokenMethod } from '../definitions'; export declare const cookieExtractor: (key: string) => (transferTokenMethod: AuthTransferTokenMethod | undefined) => JwtFromRequestFunction; export declare const headerExtractor: (key: string) => (transferTokenMethod: AuthTransferTokenMethod | undefined) => JwtFromRequestFunction; export declare const cookieExtractorForAuthorization: (transferTokenMethod: AuthTransferTokenMethod | undefined) => JwtFromRequestFunction; export declare const headerExtractorForAuthorization: (transferTokenMethod: AuthTransferTokenMethod | undefined) => JwtFromRequestFunction; export declare const cookieExtractorForRefreshToken: (transferTokenMethod: AuthTransferTokenMethod | undefined) => JwtFromRequestFunction; export declare const headerExtractorForRefreshToken: (transferTokenMethod: AuthTransferTokenMethod | undefined) => JwtFromRequestFunction; export declare const cookieExtractorForApiKey: (transferTokenMethod: AuthTransferTokenMethod | undefined) => JwtFromRequestFunction; export declare const headerExtractorForApiKey: (transferTokenMethod: AuthTransferTokenMethod | undefined) => JwtFromRequestFunction;