You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
594 B
14 lines
594 B
import { Strategy } from 'passport-jwt';
|
|
import { ConfigService } from '@nestjs/config';
|
|
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: JwtPayload): {
|
|
userId: number;
|
|
username: string;
|
|
};
|
|
}
|
|
export {};
|
|
|