A new "Logout" option should be added to the main menu. This action will perform the following steps:
Warn the user that all locally stored data will be lost.
Delete all login information and preferences (using androidx.datastore.preferences).
Clear all local data, especially the local FHIR DataStore.
Redirect the user to the login page.
A new "Logout" option should be added to the main menu. This action will perform the following steps:
Warn the user that all locally stored data will be lost. Delete all login information and preferences (using androidx.datastore.preferences). Clear all local data, especially the local FHIR DataStore. Redirect the user to the login page.