The purpose of the auth libraries is to:
- help developers to build apps following the Sign-In guidelines for Wear OS;
- provide implementation (for Wear and Mobile) for most of the authentication methods listed in the Authentication on wearables guide;
The following libraries are provided:
- auth-composables: composable screens for Authentication use cases, with no
dependency on the
- auth-ui: composable screens for Authentication use cases, with integration with
- auth-data: implementation for Wear apps for most of the authentication methods listed in the Authentication on wearables guide.
- auth-data-phone: implementation for Mobile apps for some of the
authentication methods provided by the
The following sample apps are also provided:
- auth-sample-wear: sample wear app to authenticate using different methods.
- auth-sample-phone: sample mobile app to authenticate using different methods.
The auth libraries are separated by layers (UI and data), following
the recommended app architecture.
The reason for including an extra UI library (
auth-composables) is to provide flexibility to
projects that would like to only use the UI components that are not dependent on
The usage of the auth libraries will vary according to the requirements of your project.
As per architecture overview, your project might not need to add all the auth libraries as dependency. If that’s the case, refer to the documentation of each library required to your project for a guide on how to get started.