Hi, i am wondering, Is there any chance to authenticate user via access/refresh session tokens on my server? I can't use JWT because my server uses SSR (SvelteKit).
I have already figured out how to authenticate user via expired JWT and access/refresh session tokens, but it is litttle bit too sofisticated. BTW thank you for Appwrite, is awesome
Not really.
First of all, SSR makes things significantly more complicated. If you don't need it, i recommend turning it off.
If you need it and you want to have API calls made both on the client and server-side, you'd have to make sure the session cookie is shared between the client and the server. Take a look at https://svelte-kit.ssr.almostapps.eu/ for a demo.
Thank you very much
Recommended threads
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...