StreamlineSignInScreen
A composable to streamline the sign in process.
This composable basically expose the states emitted by StreamlineSignInViewModel as callbacks. If you happen to need to use this composable, consider building your own composable screen and use StreamlineSignInViewModel directly.
The content of this composable would be displayed when the screen is in "loading" state. This is an optional param, in case of no other layout is expected to be displayed while this screen is loading, e.g. in the scenario where the app is already displaying the splash screen.
The viewModel will take care of streamlining the process when the user is already signed in. onSingleAccountAvailable should be used to navigate away from this screen in that scenario.
Suggested usage for the screen:
onSingleAccountAvailable should display a signed in confirmation dialog or navigate the user to the main screen of your app.
onMultipleAccountsAvailable should navigate the user to the account selection screen.
onNoAccountsAvailable should navigate the user to the sign in screen.