Hey everyone, I’m looking for some guidance on the best way to authenticate frontend requests to my API gateway using Appwrite sessions.
Right now, I'm trying to move away from using Appwrite's JWT tokens (since they expire every 15 minutes and that’s not ideal for scalability) and instead validate user sessions on the backend.
I'm running into some challenges:
I’m not totally sure the best way to retrieve and validate the session ID from the frontend.
I’m also seeing errors like the user missing the "account" scope, but not sure if that’s a setup issue or expected behavior.
If anyone has experience with validating Appwrite sessions on a backend (outside of Appwrite's client SDKs) or designing scalable auth flows with Appwrite, I’d love any advice, best practices, or examples you can share.
Thanks so much!
Recommended threads
- GitHub: Bad credentials: No description
I’ve connected my GitHub account to the Appwrite project, and the existing deployments are working fine. However, when I try to connect a new site or a function...
- Trying to connect a site to an existing ...
I am trying to connect a repo, it looks like it fires off a network request, but does not appear to finish or even fail trying to.
- 408Database timed out. Try adjusting you...
408 I visited to my site, but it shows: An error occurred while connecting to the server. router_bad_gateway then tried to check my site logs but it shows Dat...