Global SSO Logout
OAuth Endpoints
Global SSO Logout
API reference for the Mubarokah ID Global SSO Logout endpoint (/api/logout-sso).
GET
Global SSO Logout
Documentation Index
Fetch the complete documentation index at: https://docs-accounts.mubarokah.com/llms.txt
Use this file to discover all available pages before exploring further.
Global SSO Logout
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.
Authorization
The Bearer token of the current active session. Example:
Bearer {YOUR_ACCESS_TOKEN}Best Practices & Developer Advice
Implementation Tips
- 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.
Request Examples
JavaScript (fetch)
Responses
Confirmation message of successful logout.