
Is it possible to delete all the sessions after changing password or is it needed to do it serverside with my own code?

You can just call the session deletes API and decide which sessions to delete or let your users decide


Ah alright but what would be better for production to put that on the client or server when your on the reset page

Thanks!

Your call, depends on how important it is

You can use the jwt to perform actions on behalf of your user inside a function

So fetch: /v1/account/sessions and then go through all the ids and delete it or is there a better way?

You can also delete all together, but this will also delete the current session


Yeah that wouldnt really matter

Thanks

Anytime 👍

Please mark issue as resolved 🙏

[SOLVED] Deleting sessions when changing password

made it my habbit to do that <a:happi:1107928866477064202>

<:appwritepeepo:902865250427215882>

<a:happi:1107928866477064202>

Hello, please I am trying to delete the previous userSession when a Login component is renders, but the documentation doesn't state where I can get the sessionID from. Please how can I do this?

Please create a new <#1072905050399191082> post if you don't find a solution after searching
Recommended threads
- Appwrite Cloud Custom Domains Issue
I’m trying to configure my custom domain api.kondri.lt (CNAME pointing to appwrite.network., also tried fra.cloud.appwrite.io with no luck ) but encountering a ...
- Persistent 401 Unauthorized on all authe...
Hello, I'm facing a critical 401 Unauthorized error on my admin panel app and have exhausted all debugging options. The Problem: When my React app on localhos...
- OpenAI Whisper on Appwrite Sites
Hey guys, just wondering if I can serve an OpenAI Whisper AI on appwrite / appwrite sites. tiny model is like ~40-50MB
