FIX: add fallback language to pt-br

This commit is contained in:
Gabriel Rosa
2023-01-26 17:00:27 -03:00
parent 6d61d74d0c
commit 642bf462ad
+1 -1
View File
@@ -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