Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Sveltekit Subdomain Auth Cookies - Better Auth
BA
Better Auth
•
3mo ago
•
10 replies
Nikita R.
Sveltekit Subdomain Auth Cookies
Svelte Kit
Hello
, can someone show me how to make cookies work under sveltekit
? i did followed the Better Auth Svelte Kit Integration tutorial with the env vars
ORIGIN
=
https://subdomain.domain.com
BETTER
_AUTH
_URL
=
https://subdomain.domain.com
BETTER
_AUTH
_SECRET
=dsaduiasiuyduiui
when using magic link
, first the response contains the cookie under name
:
_
_Secure
-better
-auth
.session
_token
and is stored in the browser cookies
, but on next reload or load it disapears
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
cookies subdomain
BA
Better Auth / help
6mo ago
Auth Subdomain
BA
Better Auth / help
2mo ago
cross subdomain cookies issue
BA
Better Auth / help
10mo ago