preiiter, eslint
This commit is contained in:
14
backend/dist/auth/jwt.stratedy.d.ts
vendored
14
backend/dist/auth/jwt.stratedy.d.ts
vendored
@@ -1,10 +1,14 @@
|
||||
import { Strategy } from 'passport-jwt';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
declare const JwtStrategy_base: new (...args: any) => any;
|
||||
import { JwtPayload } from 'src/common/interfaces/jwt-payload.interface';
|
||||
declare const JwtStrategy_base: new (...args: [opt: import("passport-jwt").StrategyOptionsWithRequest] | [opt: import("passport-jwt").StrategyOptionsWithoutRequest]) => Strategy & {
|
||||
validate(...args: any[]): unknown;
|
||||
};
|
||||
export declare class JwtStrategy extends JwtStrategy_base {
|
||||
constructor(config: ConfigService);
|
||||
validate(payload: any): Promise<{
|
||||
userId: any;
|
||||
username: any;
|
||||
}>;
|
||||
validate(payload: JwtPayload): {
|
||||
userId: number;
|
||||
username: string;
|
||||
};
|
||||
}
|
||||
export {};
|
||||
|
Reference in New Issue
Block a user