From 642bf462ad5461f098282fd5cf02c52d3a000f35 Mon Sep 17 00:00:00 2001 From: Gabriel Rosa Date: Thu, 26 Jan 2023 17:00:27 -0300 Subject: [PATCH] FIX: add fallback language to pt-br --- src/modules/auth/auth.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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