Skip to content

Commit

Permalink
난 되지롱~
Browse files Browse the repository at this point in the history
  • Loading branch information
Arios67 committed Mar 31, 2022
1 parent d814bba commit 9545170
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ars/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dev-antonym-341008-4b961b814f1a.json
.env.dev
logstash.conf

# compiled output
/dist
Expand Down
6 changes: 3 additions & 3 deletions ars/src/apis/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;`,
);
}

Expand All @@ -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('');
}
}
}

0 comments on commit 9545170

Please sign in to comment.