Skip to content

Logout

GenAuth supports multiple ways to log out:

  • [Logout from the personal center](#Logout from the personal center): This method is suitable for scenarios where you use the online personal center hosted by GenAuth;
  • [Logout from the front end](#Logout from the front end): This method is suitable for almost any scenario;
  • [Logout from the back end](#Logout from the back end): This method is suitable for scenarios where administrators call APIs to force users to log out;
  • [Force users to log out](#Force users to log out): This method is suitable for scenarios where administrators use the console to force users to log out.

Logout from the personal center

End users can visit https://appdomain.genauth.ai/u to enter the personal center, click the avatar in the upper right corner, and click Logout.

Logout from the frontend

Guide your end users to log out by visiting https://appdomain.genauth.ai/login/profile/logout?redirect_uri={{CALLBACK_URL}}. redirect_uri can be filled with a callback address after logout, for example, you can jump to your business homepage.

Note ⚠️: You need to use encodeURIComponent to URL Encode the callback link.

Logout from the backend

If you need to log out a GenAuth user in the backend, you need to access the following interface:

  • Interface description: The user pool administrator logs out the GenAuth user in the backend.
  • Interface address: POST https://<your application domain name>.genauth.ai/api/applications/:appId/kick-active-users
  • Request header:
ParameterTypeRequiredDescription
x-authing-userpool-idstringYesUser pool ID.
AuthorizationstringYesUser pool administrator token
  • Request parameters:
ParameterTypeRequiredDescription
userIdsstring[]YesUser ID array.
appIdstringYesApplication ID.
  • Return data:
json
{
  "code": 200,
  "message": "Forced offline successful"
}

Force user offline

User pool administrators can force users to log off through Console > Application > Login management.

Agent infrastructure for identity, memory, and web action.