The Global SSO Logout endpoint allows a client application to terminate the user’s entire Single Sign-On session across the Mubarokah ID ecosystem.Unlike a local logout (which only clears the session in your application), this endpoint:
Revokes the provided Access Token.
Characteristically terminates the central web session at mubarokah.id.
Ensures that the user is logged out from all other applications connected via Mubarokah ID SSO.
Single Sign-Out Awareness
Calling this API will log the user out from ALL Mubarokah ID affiliated applications (e.g., Dashboard, other client apps).Recommendation:
Before calling this endpoint, show a confirmation dialog to the user: “Are you sure you want to log out? This will also end your session in other Mubarokah ID applications.”
Sequential Logout: First, call this API to terminate the global session. Then, clear your local application session (cookies, localStorage, or server-side session).
Error Handling: If the API call fails (e.g., due to network issues), you should still proceed with clearing the local session as a fallback.
Use the SDK: If you are using our React SDK, the logout() function already handles this logic securely.