diff --git a/services/mana-core-auth/src/auth/services/better-auth.service.ts b/services/mana-core-auth/src/auth/services/better-auth.service.ts index 326a2cbec..6b6b3cf1c 100644 --- a/services/mana-core-auth/src/auth/services/better-auth.service.ts +++ b/services/mana-core-auth/src/auth/services/better-auth.service.ts @@ -551,6 +551,15 @@ export class BetterAuthService { }; } catch (error: unknown) { if (error instanceof Error) { + if ( + error.message?.includes('Email not verified') || + error.message?.includes('EMAIL_NOT_VERIFIED') + ) { + throw new ForbiddenException({ + message: 'Email not verified', + code: 'EMAIL_NOT_VERIFIED', + }); + } if ( error.message?.includes('invalid') || error.message?.includes('credentials') ||