Sveltekit error Error: Cannot use relative URL (/api/auth/get-session)

Error: Cannot use relative URL (/api/auth/get-session) with global fetch — use `event.fetch` instead: https://svelte.dev/docs/kit/web-standards#fetch-apis
at globalThis.fetch
Error: Cannot use relative URL (/api/auth/get-session) with global fetch — use `event.fetch` instead: https://svelte.dev/docs/kit/web-standards#fetch-apis
at globalThis.fetch
I think this is related to some update to sveltekit
1 Reply
Silvan
SilvanOP5d ago
Sorry for some context this used to work fine. its just a simple const session = await authClient.getSession(); actually nvm i downgraded both sk and better-auth and i still get this

Did you find this page helpful?