Files
SerpentRace/SerpentRace_Backend/dist/Application/User/commands/LoginCommandHandler.d.ts
T

20 lines
849 B
TypeScript

import { IUserRepository } from '../../../Domain/IRepository/IUserRepository';
import { IOrganizationRepository } from '../../../Domain/IRepository/IOrganizationRepository';
import { LoginCommand } from './LoginCommand';
import { ShortUserDto } from '../../DTOs/UserDto';
import { JWTService } from '../../Services/JWTService';
export interface LoginResponse {
user: ShortUserDto;
token: string;
requiresOrgReauth?: boolean;
orgLoginUrl?: string;
organizationName?: string;
}
export declare class LoginCommandHandler {
private readonly userRepo;
private readonly jwtService;
private readonly orgRepo;
constructor(userRepo: IUserRepository, jwtService: JWTService, orgRepo: IOrganizationRepository);
execute(cmd: LoginCommand): Promise<LoginResponse | null>;
}
//# sourceMappingURL=LoginCommandHandler.d.ts.map