From 95451701b016492e967a5d846a8b50a3eb404170 Mon Sep 17 00:00:00 2001 From: Arios67 Date: Thu, 31 Mar 2022 21:05:07 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=9C=20=EB=90=98=EC=A7=80=EB=A1=B1~?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ars/.gitignore | 1 + ars/src/apis/auth/auth.service.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ars/.gitignore b/ars/.gitignore index 250e8fb..87c6a9a 100644 --- a/ars/.gitignore +++ b/ars/.gitignore @@ -1,5 +1,6 @@ dev-antonym-341008-4b961b814f1a.json .env.dev +logstash.conf # compiled output /dist diff --git a/ars/src/apis/auth/auth.service.ts b/ars/src/apis/auth/auth.service.ts index 1c2b4e8..f2cd115 100644 --- a/ars/src/apis/auth/auth.service.ts +++ b/ars/src/apis/auth/auth.service.ts @@ -25,7 +25,7 @@ export class AuthService { res.setHeader('Access-Control-Allow-Origin', 'http://localhost:3000'); res.setHeader( 'Set-Cookie', - `refreshToken=${refreshToken}; path=/; domain=.arios67.shop; SameSite=None; Secure;httpOnly;`, + `refreshToken=${refreshToken}; path=/; domain=.daseul.shop; SameSite=None; Secure;httpOnly;`, ); } @@ -38,10 +38,10 @@ export class AuthService { const createUser = { ...rest, password: hashedPassword }; user = await this.userService.create({ ...createUser }); this.setRefreshToken({ user, res }); - res.redirect('http://localhost:3000/socialLogin'); + res.redirect('/socialLogin'); } else { this.setRefreshToken({ user, res }); - res.redirect('http://localhost:3000'); + res.redirect(''); } } }