Revoke session - Realm

Hi all,

I would like to know if there is a way to revoke all the sessions for a specific user from a Realm function.
I know there is an option in the MongoDB Realm > App Users UI but I would like to do the same in a function which will be called by a trigger.

Thanks for your help!

Hey Julien -

We have an admin API endpoint that lets you revoke sessions that does this that you can access from a function. There is a previous post on the forum that goes into detail about how to use the Admin API within functions here that might help.

Thanks @Sumedha_Mehta1 for your help