Refactor code structure for improved readability and maintainability
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
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 {};
|
||||
Reference in New Issue
Block a user