Skip to content

Commit

Permalink
Merge pull request #295 from Quickchive/fix/#294-add-domain-to-cookie
Browse files Browse the repository at this point in the history
fix: add domain to cookie
  • Loading branch information
stae1102 authored Mar 3, 2024
2 parents b619ceb + f08012f commit 46a15b5
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 46a15b5

Please sign in to comment.