Otpless class
A class for handling OTP-less authentication operations.
Constructors
- Otpless()
- Calls the HeadlessResponse function to send the SNA data
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
executeFunction(
OtplessResultCallback onHeadlessResult, String functionName, [List< Object> ? arguments]) → void - Executes a JavaScript function asynchronously.
-
getCodeForParams(
) → String? - Gets the authentication code from URL parameters.
-
headlessResponse(
OtplessResultCallback resultCallback) → void - Initiates a headless authentication response.
-
initiateEmailAuth(
OtplessResultCallback resultCallback, Map< String, dynamic> request) → void - Initiates email authentication.
-
initiateOAuth(
OtplessResultCallback resultCallback, String channelType) → void - Initiates OAuth authentication.
-
initiatePhoneAuth(
OtplessResultCallback resultCallback, Map< String, dynamic> request) → void - Initiates phone number authentication.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openLoginPage(
OtplessResultCallback resultCallback) → void - Opens the login page for OTP-less authentication.
-
toString(
) → String -
A string representation of this object.
inherited
-
verifyAuth(
OtplessResultCallback resultCallback, dynamic data) → void - Verifies the authentication.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited