GenAuth DocsDocuments
Concepts
User Guide
Development Integration
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
User Guide
  • Quick Start

    • Authenticate Your First User

      • Overview
      • Use Hosted Login Page
      • Use Embedded Login Component
      • Use API & SDK
      • Validate User Token
      • Implement Access Control
      • Logout
      • What's Next
    • Integration Methods for Different Applications

    • Console Overview
  • Authentication

  • Access Control

  • Authorization

  • Adaptive MFA

  • User Account Management

  • User Directory Management

  • Applications

  • Become a Federation Authentication Identity Provider

  • Connect External Identity Providers (IdP)

  • WeChat Ecosystem Full Scenario Capabilities

  • Migrate Users to GenAuth

  • Security Settings

  • Branding

  • Automation

  • Audit Logs

  • Setting

  • FAQ

  1. User Guide
  2. /
  3. Quick Start

  4. /
  5. Authenticate Your First User
  6. /
  7. Logout

¶ Logout

Update time: 2025-04-11 11:21:15
Edit

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=. 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:
{
  "code": 200,
  "message": "Forced offline successful"
}

¶ Force user offline

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

Previous article: Implement Access Control Next article: What's Next
  • Logout from the personal center
  • Logout from the frontend
  • Logout from the backend
  • Force user offline

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.