mutation

loginWithOTP

Allow users to log in using a one-time password sent to their mobile.
Arguments
platform
String
ID of the application.
sendOtpRequestSchemaInput
SendOtpRequestSchemaInput
Describes the request structure to login or register with a one-time password (OTP) sent via email or sms.
Response
country_code
String
Country code for the phone number.
email
String
Email id of user.
message
String
Message to specify the OTP send status. Eg. OTP sent, failed to send OTP etc.
mobile
String
Phone number of user.
register_token
String
Unique registration token for user.
request_id
String
Unique request id for the OTP.
resend_email_token
String
Unique token to identify the OTP send request and resend the token on email.
resend_timer
Int
Time after which opt can be resent.
resend_token
String
Unique token to identify the OTP send request and resend the token.
success
Boolean
Specify if the OTP is successfully sent.
user_exists
Boolean
If user is registered or not.
verify_email_otp
Boolean
If email OTP verification is mandatory for registration.
verify_mobile_otp
Boolean
If mobile OTP verification is mandatory for registration.
Mutation
Loading...
Try it
Input Variables
Loading...
Response
Loading...