#[SOLVED] Deleting sessions when changing password

19 messages · Page 1 of 1 (latest)

vestal bolt
#

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

frigid lagoon
vestal bolt
#

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

#

Thanks!

frigid lagoon
#

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

vestal bolt
#

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

frigid lagoon
#

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

vestal bolt
#

Thanks

frigid lagoon
#

Anytime 👍

#

Please mark issue as resolved 🙏

vestal bolt
#

[SOLVED] Deleting sessions when changing password

vestal bolt
frigid lagoon
vestal bolt
spice marsh
#

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?