Skip to content

Commit ea7f4b7

Browse files
authored
Merge pull request #17 from gyedongjeon/hotfix/v0.1.6
hotfix: v0.1.6 sync
2 parents 9167c66 + 64f5c48 commit ea7f4b7

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "german-api",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"description": "",
55
"author": "",
66
"private": true,

backend/src/auth/auth.controller.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AuthService } from './auth.service';
1313

1414
@Controller('auth')
1515
export class AuthController {
16-
constructor(private authService: AuthService) {}
16+
constructor(private authService: AuthService) { }
1717

1818
@Get('google')
1919
@UseGuards(AuthGuard('google'))
@@ -40,7 +40,9 @@ export class AuthController {
4040
});
4141

4242
// Redirect to Frontend (deliver token)
43-
res.redirect(`http://localhost:3000/auth/callback?${params.toString()}`);
43+
const frontendUrls = (process.env.FRONTEND_URL || 'http://localhost:3000').split(',');
44+
const primaryUrl = frontendUrls[0].trim();
45+
res.redirect(`${primaryUrl}/auth/callback?${params.toString()}`);
4446
}
4547

4648
@Patch('language')

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "german-app",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

0 commit comments

Comments
 (0)