diff --git a/src/modules/auth/auth.service.ts b/src/modules/auth/auth.service.ts index 14171f3..c504a6e 100644 --- a/src/modules/auth/auth.service.ts +++ b/src/modules/auth/auth.service.ts @@ -135,7 +135,9 @@ export class AuthService { } private isMockMode(): boolean { - return this.configService.get('app.nodeEnv') !== 'production'; + const env = this.configService.get('app.nodeEnv'); + const aiProvider = this.configService.get('ai.provider'); + return env !== 'production' || aiProvider === 'mock'; } private verifyMockApple(identityToken: string, email?: string | null): string {