Rank 3: Container
Is it possible to delete all the sessions after changing password or is it needed to do it serverside with my own code?
Votes
0
Replies
19
Participants
Unknown
Messages
20
Rank 3: Container
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
Rank 3: Container
Ah alright but what would be better for production to put that on the client or server when your on the reset page
Rank 3: Container
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
Rank 3: Container
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
Rank 3: Container
Yeah that wouldnt really matter
Rank 3: Container
Thanks
Anytime 👍
Please mark issue as resolved 🙏
Rank 3: Container
[SOLVED] Deleting sessions when changing password
Rank 3: Container
made it my habbit to do that 

Rank 3: Container

Rank 1: Thread
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?
Admin
Please create a new #channel post if you don't find a solution after searching