AB#2596635
We have seen that when trying to sign out an account from PowerApps, OneAuth-MSAL marks the force prompt flag on account and that makes a call to SharedPreferencesFileManager.putString() to update the account properties.
After this PowerApps makes a call to MAM API to unregister account and this causes the PowerApps to get force closed.
Since the application is killed, the SharedPreferece apply() could not complete and the account properties are not properly stored.
Proposed solution is to have a flush method which will be called by OneAuth-MSAL when critical account properties such as sign out flag need to be updated.
AB#2596635 We have seen that when trying to sign out an account from PowerApps, OneAuth-MSAL marks the force prompt flag on account and that makes a call to SharedPreferencesFileManager.putString() to update the account properties. After this PowerApps makes a call to MAM API to unregister account and this causes the PowerApps to get force closed. Since the application is killed, the SharedPreferece apply() could not complete and the account properties are not properly stored. Proposed solution is to have a flush method which will be called by OneAuth-MSAL when critical account properties such as sign out flag need to be updated.