Prerequisites
- Before you proceed with integrating Google and Facebook login using the Google SDK and Facebook SDK, make sure to complete the integration steps from the OTPless Android Headless SDK Documentation.
- Add SDK dependencies:
Build.gradle
Please check the latest version of the Google SDK here and Facebook SDK here.
Make sure to synchronize your Gradle project to fetch the dependency.
Choose your platform type to initiate login:
- Google
- Facebook
Request
To initiate an google login, set the channel type asGOOGLE_SDK
.Note: Provide Google Client ID
For proper functioning of Google login in your application, you need to provide theClientId
and Client Secret
of the credentials created on the Google Cloud Console.Please ensure that the ClientId
and Client Secret
associated with your application is provided to OTPless for seamless integration and authentication functionality. This is crucial for the authentication process to work correctly.