Auth UI¶
This library contains a set of composables screens and components related to authentication.
The previews of the composables can be found in the debug
folder of the module source code.
The composables of this module might depend on repository interfaces defined
in auth-data
library. The implementation of these repositories does not necessarily need to be from auth-data
,
they can be your own implementation. Some of the composables might depend on an external library.
Screens¶
Common¶
SignInPromptScreen¶
A screen to prompt users to sign in.
It helps achieve to the following best practices:
Google Sign-In¶
GoogleSignInScreen¶
A screen for the Google Sign-In authentication method.
It uses different screens from auth-composables to display the full authentication flow.
It relies on
the Google Sign-In for Android
library for authentication and account selection. So an instance
of GoogleSignInClient
has to be provided to GoogleSignInViewModel
.