Skip to content

Commit

Permalink
Reflect new structure of cookie config object since RW 6.4
Browse files Browse the repository at this point in the history
Also add highlighting for the relevant line
  • Loading branch information
Philzen authored Dec 15, 2024
1 parent c3812ca commit 00c6b44
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/docs/auth/dbauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,15 @@ To do this, set the `cookie.Domain` property in your `api/src/functions/auth.js`

```json title="api/src/functions/auth.js"
cookie: {
HttpOnly: true,
Path: '/',
SameSite: 'Strict',
Secure: process.env.NODE_ENV !== 'development' ? true : false,
Domain: 'example.com'
attributes: {
HttpOnly: true,
Path: '/',
SameSite: 'Strict',
Secure: process.env.NODE_ENV !== 'development' ? true : false,
// highlight-next-line
Domain: 'example.com'
},
// name: 'session_%port%'
}
```

Expand Down

0 comments on commit 00c6b44

Please sign in to comment.