Introduction
Welcome to the OTPLESS LoginPage SDK documentation. This sdk enables native and chrome custom tab connectivity for your application.
Requirements
- The compileSdk version should be 35.
- The minimum SDK version supported by the SDK is 21.
- The kotlin version should be 1.9.0 and above.
- The gradle version should be 8.3.1 and above.
Step 1: Add SDK Dependency
Add the following dependency in your app’s build.gradle
.
Please check the latest version of the otpless-loginpage-android.
Step 2: Configure your SignIn/SignUp Activity
Import the ConnectController
class
Declare a connectController
member in your SignIn/SignUpActivity
Assign the member in onCreate
of your SignIn/SignUpActivity
, initialize the connectController and register the callback response method.
On initialization is success callback is given in callback method.
To enable the logging in debug app, enable it from our Utility class
Step 3: Starting otpless
Call startOtplessWithLoginPage
method from connectController
to start otpless login page.
Step 4: Handle auth response
Extract token
from authResponse
and validate token
with backend apis.
Backend documentation
Step 5: Closing otpless
When your login page is closed or login is successful, close the connectController
.
Was this page helpful?