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.
tryFullStack/backend/dist/auth/jwt.stratedy.d.ts

15 lines
594 B

2 weeks ago
import { Strategy } from 'passport-jwt';
3 weeks ago
import { ConfigService } from '@nestjs/config';
2 weeks ago
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;
};
3 weeks ago
export declare class JwtStrategy extends JwtStrategy_base {
constructor(config: ConfigService);
2 weeks ago
validate(payload: JwtPayload): {
userId: number;
username: string;
};
3 weeks ago
}
export {};