Hi @georgysavva. Welcome!
I want this button to log out all first-party applications(all devises where user is logged in).
You can do so by invalidating all grants related to the user. In order to do so you would use:
- Auth0 Management API v2 to get all the grants for the user
- Auth0 Management API v2 to delete a grant, iterating over the results from the previous step.
Note that you won’t be able to make requests to the Management API directly from a public client (like the native and SPA apps). So the apps would talk to your own API, and your API would in turn talk to the Auth0’s Management API to delete the grants (and thus invalidate the existing refresh tokens).
Does that help?