Skip to content

Commit

Permalink
more Lax
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Jan 9, 2025
1 parent 7b907eb commit 3295a41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/docs/how-to/oauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ const secureCookie = (user) => {
`Expires=${expires.toUTCString()}`,
'HttpOnly=true',
'Path=/',
'SameSite=Strict',
'SameSite=Lax',
`Secure=${process.env.NODE_ENV !== 'development'}`,
]
const data = JSON.stringify({ id: user.id })
Expand Down Expand Up @@ -731,7 +731,7 @@ const secureCookie = (user) => {
`Expires=${expires.toUTCString()}`,
'HttpOnly=true',
'Path=/',
'SameSite=Strict',
'SameSite=Lax',
`Secure=${process.env.NODE_ENV !== 'development'}`,
]
const data = JSON.stringify({ id: user.id })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2580,7 +2580,7 @@ describe('dbAuth', () => {
expect(attributes.length).toEqual(6)
expect(attributes[0]).toEqual('Path=/')
expect(attributes[1]).toEqual('HttpOnly')
expect(attributes[2]).toEqual('SameSite=Strict')
expect(attributes[2]).toEqual('SameSite=Lax')
expect(attributes[3]).toEqual('Secure')
expect(attributes[4]).toEqual('Domain=example.com')
expect(attributes[5]).toMatch(`Expires=`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,7 @@ describe('dbAuth', () => {
expect(attributes.length).toEqual(6)
expect(attributes[0]).toEqual('Path=/')
expect(attributes[1]).toEqual('HttpOnly')
expect(attributes[2]).toEqual('SameSite=Strict')
expect(attributes[2]).toEqual('SameSite=Lax')
expect(attributes[3]).toEqual('Secure')
expect(attributes[4]).toEqual('Domain=example.com')
expect(attributes[5]).toMatch(`Expires=`)
Expand Down

0 comments on commit 3295a41

Please sign in to comment.