feat: add mode parameter to social auth to distinguish between login and signup flows

This commit is contained in:
pradeepkumar
2026-03-31 23:22:52 +05:30
parent e5e1888615
commit f30894dd79
3 changed files with 16 additions and 10 deletions

View File

@@ -487,15 +487,6 @@ export class UsersService {
throw new BadRequestException('Profile is already verified');
}
// Validate required fields are filled
const missingFields = await this.getRequiredFieldsMissing(user.agentProfile.id, user.agentProfile.agentTypeId);
if (missingFields.length > 0) {
throw new BadRequestException({
message: 'Please fill in all required fields before submitting',
missingFields,
});
}
// Capture snapshot of current profile data + documents
const profileSnapshot = await this.captureProfileSnapshot(user.agentProfile.id);