Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
745 B
TypeScript
19 lines
745 B
TypeScript
import { Strategy } from 'passport-jwt';
|
|
import { ConfigService } from '@nestjs/config';
|
|
import { AuthService, JwtPayload } from '../services/auth.service';
|
|
export interface RequestUser {
|
|
id: string;
|
|
email: string;
|
|
tenant_id: string;
|
|
}
|
|
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 {
|
|
private readonly configService;
|
|
private readonly authService;
|
|
constructor(configService: ConfigService, authService: AuthService);
|
|
validate(payload: JwtPayload): Promise<RequestUser>;
|
|
}
|
|
export {};
|