added google login

This commit is contained in:
yousef-alkhrissat
2024-08-24 13:09:21 +03:00
parent 32cf79ac70
commit bc0a8627c4
3 changed files with 35 additions and 1 deletions

View File

@ -16,4 +16,8 @@ export class UserLoginDto {
@IsString()
@IsOptional()
regionUuid?: string;
@IsOptional()
@IsString()
googleCode?: string;
}

View File

@ -122,6 +122,7 @@ export class UserAuthService {
return { uuid: role.uuid, type: role.roleType.type };
}),
sessionId: session[1].uuid,
googleCode: data.googleCode,
});
} catch (error) {
throw new BadRequestException('Invalid credentials');