Back

Appwrite + SvelteKit + SSR

  • 0
  • Auth
  • Web
jonericcook
16 Aug, 2024, 01:33

Hello,

I just followed this tutorial https://appwrite.io/docs/tutorials/sveltekit-ssr-auth/step-1 and things work somewhat. If i am not authenticated and i visit /account i am redirected to /signup as expected. One item that doesn't behave as expected is when I navigate to the home page / while already authenticated I get redirected to /signup and not to /account. Is there something missing in the hooks.server.js file or maybe the file here src/routes/+page.server.js?

Thank you, Jon-Eric Cook

TL;DR
Appwrite + SvelteKit + SSR tutorial followed. Redirects to /signup instead of /account when authenticated user visits /. Check hooks.server.js or src/routes/+page.server.js for missing configuration.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more