2025-07-18 17:48:12 +09:00
|
|
|
import { Strategy } from 'passport-jwt';
|
2025-07-16 16:25:16 +09:00
|
|
|
import { ConfigService } from '@nestjs/config';
|
2025-07-18 17:48:12 +09:00
|
|
|
import { JwtPayload } from 'src/common/interfaces/jwt-payload.interface';
|
2025-07-18 17:57:54 +09:00
|
|
|
declare const JwtStrategy_base: new (...args: [opt: import("passport-jwt").StrategyOptionsWithRequest] | [opt: import("passport-jwt").StrategyOptionsWithoutRequest]) => Strategy & {
|
2025-07-18 17:48:12 +09:00
|
|
|
validate(...args: any[]): unknown;
|
|
|
|
};
|
2025-07-16 16:25:16 +09:00
|
|
|
export declare class JwtStrategy extends JwtStrategy_base {
|
|
|
|
constructor(config: ConfigService);
|
2025-07-18 17:48:12 +09:00
|
|
|
validate(payload: JwtPayload): {
|
|
|
|
userId: number;
|
|
|
|
username: string;
|
|
|
|
};
|
2025-07-16 16:25:16 +09:00
|
|
|
}
|
|
|
|
export {};
|