diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index 8df8a58..30c93ec 100644 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -243,7 +243,7 @@ export class AuthController { @UseGuards(AuthGuard('google-login')) @Redirect() async googleOauthCallback(@Req() req) { - const { url, email, token, language } = await this.callback(req); + const { url, email, token, language = 'pt-br' } = await this.callback(req); if (url.searchParams.get('error')) return { url: url.href }; await this.authClient