Files
recipe-app/backend/dist/auth/jwt.strategy.d.ts
T
Nils-Johan Gynther 969dafdbc6
Test Suite / test (24.15.0) (push) Has been cancelled
Refactor code structure for improved readability and maintainability
2026-05-06 07:37:59 +02:00

22 lines
581 B
TypeScript

import { Strategy } from 'passport-jwt';
declare const JwtStrategy_base: new (...args: any[]) => Strategy;
export declare class JwtStrategy extends JwtStrategy_base {
private readonly logger;
constructor();
validate(payload: {
sub?: number;
id?: number;
userId?: number;
username?: string;
role?: string;
isPremium?: boolean;
}): Promise<{
id: number | undefined;
userId: number | undefined;
username: string | undefined;
role: string;
isPremium: boolean;
}>;
}
export {};