© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Sveltekit Subdomain Auth Cookies - Better Auth
BA
Better Auth
•
4mo 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
Recent Announcements
Similar Threads
cookies subdomain
BA
Better Auth / help
8mo ago
cross subdomain cookies issue
BA
Better Auth / help
11mo ago
Auth Subdomain
BA
Better Auth / help
4mo ago