Log Out
The Log out confirmation screen terminates the active user session.
This screen includes:
-
Confirmation message - Prompts the user to confirm session termination.
-
Cancel button - Closes the dialog and keeps the session active.
-
Ok button - Confirms log out and ends the session.
Workflow
This sequence describes how the user ends a session through the log out flow.
This flow starts when the user selects Log out.
Primary Flow
Exit Conditions
- Selecting Ok ends the session.
- Selecting Cancel closes the dialog and keeps the session active.
Validation
| Scenario | App behavior | SDK output |
|---|---|---|
| No active session. | Ignore log out action or display log in screen. | Unauthenticated state. |
| Log out selected. | Display confirmation dialog. | Pending confirmation state. |
Actions
Session Termination
| Scenario | App behavior | SDK output |
|---|---|---|
| Ok selected. | End session and clear token. | state = loggedOut. |
| Cancel selected. | Close dialog and keep session. | state = active. |
Endpoint Resources
Logout Confirmation
PUT
v3/account/logout
Use this endpoint to retrieve configuration for log out confirmation and to align UI behavior with the current session state at Levels 3–6.
Logout
POST
v3/account/logout
Use this endpoint to end the authenticated doctor’s session and revoke access tokens.
Calls to this endpoint protect session integrity and help prevent unauthorized reuse of credentials.
