'How to use REST API to logout a current user from the Google Cloud Identity Platform?

The documentation explains how to use REST API to perform common user operations, such as signing in users.

But it doesn't include, how to logout the current user. How it can be done?



Solution 1:[1]

If you want to immediately sign out another user then that cannot be done.
However, if you remove their role, revoke their permission or perform any action that will refresh their token, then they will be denied on the next action they perform, e.g. when they refresh the website, send a form, execute Cloud SDK command or make an API request.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sergiusz