How do i authenticate my users on the Server , when i use the client sdk , my users is store in the browsers localStorage , but what if i wanna Serverside render some page which should have a restricted access.
Add yes i can use the JWT method but what if my user is signedIn and directly access the protected page (opening the starting page).
Is there any way to authenticate users on the server and typically pass that auth state to the client
i use sveltekit btw
Not currently, no. You can upvote this issue on GitHub - https://github.com/appwrite/appwrite/issues/3891
In the meantime, you could have the session created on the client side, then pass the userID to the serverside and just handle that manually
Recommended threads
- education plan not activated
Hi I have an edu id 13103046@iubat.edu but when I am trying to claim my plan and trying to logging with github where education student plan active. the appwrite...
- 500 simultaneous OAuth logins from the s...
Hi, I'd like to ask about rate limiting around Google OAuth login on Appwrite Cloud. **OVERVIEW** Service type: A PWA (web app) for members of a university clu...
- Suspicious access pattern detected when ...
Hello, I am having trouble restoring my project. In the past it worked with no problems, but today I get an error "Suspicious access pattern detected". How can ...