diff --git a/docs/docs/auth/dbauth.md b/docs/docs/auth/dbauth.md index 490769c8af99..1c34f8e76a75 100644 --- a/docs/docs/auth/dbauth.md +++ b/docs/docs/auth/dbauth.md @@ -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%' } ```