-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
24 lines (24 loc) · 1 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { CanActivate, ExecutionContext } from '@nestjs/common';
interface IJwtDecodeOptions {
authorizationHeader?: string;
authScheme?: string;
}
export declare const JwtDecode: (...dataOrPipes: (import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>> | IJwtDecodeOptions)[]) => ParameterDecorator;
export declare class JwtGuard implements CanActivate {
private callback;
private decodeOptions?;
constructor(callback: (jwtDecoded: any, jwt: string) => boolean, decodeOptions?: IJwtDecodeOptions);
canActivate(context: ExecutionContext): boolean;
}
export declare class JwtScopesGuard extends JwtGuard {
constructor(scopes: string[], decodeOptions?: IJwtDecodeOptions);
}
export declare class ExtractToken {
private headers;
authHeader: string;
authScheme: string;
SPLIT_REGEXP: RegExp;
constructor(headers: any, { authorizationHeader, authScheme, }?: IJwtDecodeOptions);
token(): string;
}
export {};