session cookie name

Is there a way change the name of the httponly cookie sent to the client?
No description
1 Reply
dreyz
dreyz3w ago
yes, in your config:
advanced: {
cookiePrefix: env.APP_NAME,
},
advanced: {
cookiePrefix: env.APP_NAME,
},
https://www.better-auth.com/docs/concepts/cookies
Cookies | Better Auth
Learn how cookies are used in Better Auth.

Did you find this page helpful?