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>
34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
import { Request } from 'express';
|
|
import { AuthService, AuthResponse } from './services/auth.service';
|
|
import { LoginDto, RegisterDto, RequestPasswordResetDto, ResetPasswordDto, ChangePasswordDto } from './dto';
|
|
import { RequestUser } from './strategies/jwt.strategy';
|
|
export declare class AuthController {
|
|
private readonly authService;
|
|
constructor(authService: AuthService);
|
|
register(dto: RegisterDto, tenantId: string, req: Request): Promise<AuthResponse>;
|
|
login(dto: LoginDto, tenantId: string, req: Request): Promise<AuthResponse>;
|
|
logout(user: RequestUser, sessionToken: string): Promise<{
|
|
message: string;
|
|
}>;
|
|
logoutAll(user: RequestUser): Promise<{
|
|
message: string;
|
|
}>;
|
|
refresh(refreshToken: string, req: Request): Promise<{
|
|
accessToken: string;
|
|
refreshToken: string;
|
|
}>;
|
|
requestPasswordReset(dto: RequestPasswordResetDto, tenantId: string): Promise<{
|
|
message: string;
|
|
}>;
|
|
resetPassword(dto: ResetPasswordDto, tenantId: string): Promise<{
|
|
message: string;
|
|
}>;
|
|
changePassword(user: RequestUser, dto: ChangePasswordDto): Promise<{
|
|
message: string;
|
|
}>;
|
|
verifyEmail(token: string, tenantId: string): Promise<{
|
|
message: string;
|
|
}>;
|
|
getProfile(user: RequestUser): Promise<Partial<import("./entities").User>>;
|
|
}
|