element-android
element-android copied to clipboard
Mutualize the pending auth handling
Your use case
What would you like to do?
Mutualize the process of pending auth handling.
Why would you like to do it?
Several ViewModel which need authentication for some actions duplicate the same code to handle the pending auth and action.
How would you like to achieve it?
Create a dedicated PendingAuthHandler to encapsulate the logic and add unit tests on it.
Have you considered any alternatives?
No response
Additional context
No response
Are you willing to provide a PR?
Yes