Skip to content

Commit

Permalink
fix: add domain to cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
stae1102 committed Mar 3, 2024
1 parent b619ceb commit f08012f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/auth/oauth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,13 @@ export class OAuthService {
const cookieOption: CookieOptions =
process.env.NODE_ENV === 'prod'
? {
domain: process.env.FRONTEND_URL,
httpOnly: true,
sameSite: 'none',
secure: true,
}
: {
domain: process.env.FRONTEND_URL,
httpOnly: true,
sameSite: 'lax',
secure: false,
Expand Down

0 comments on commit f08012f

Please sign in to comment.