mutation
loginWithOTP
Allow users to log in using a one-time password sent to their mobile.
Arguments
platform
StringID of the application.
sendOtpRequestSchemaInput
SendOtpRequestSchemaInputDescribes the request structure to login or register with a one-time password (OTP) sent via email or sms.
Response
country_code
StringCountry code for the phone number.
email
StringEmail id of user.
message
StringMessage to specify the OTP send status. Eg. OTP sent, failed to send OTP etc.
mobile
StringPhone number of user.
register_token
StringUnique registration token for user.
request_id
StringUnique request id for the OTP.
resend_email_token
StringUnique token to identify the OTP send request and resend the token on email.
resend_timer
IntTime after which opt can be resent.
resend_token
StringUnique token to identify the OTP send request and resend the token.
success
BooleanSpecify if the OTP is successfully sent.
user_exists
BooleanIf user is registered or not.
verify_email_otp
BooleanIf email OTP verification is mandatory for registration.
verify_mobile_otp
BooleanIf mobile OTP verification is mandatory for registration.
Mutation
Loading...
Try it
Input Variables
Loading...
Response
Loading...
Was this section helpful?