x.test auth sample
NestJS + Better Auth on api.x.test owns auth. SvelteKit on app.x.test renders pages server-side using the shared session cookie (Domain=x.test).
Server-side view (locals.user, rendered by SSR)
not signed in
Client-side view (authClient.useSession())
loading…