I’m currently following the instructions laid out in the Auth0 js 9 reference to implement passwordless login via sms. The passwordlessStart method works fine and I receive the OTP, however, when I try to use the passwordlessLogin method next, I receive the following error:
“Invalid request body. All and only of client_id, credential_type, username, otp, realm are required.”
This is how I’m calling the method. Please note that ‘auth’ is my initialized webAuth instance:
auth.passwordlessLogin(
{
connection: 'sms',
phoneNumber: phoneNumber,
verificationCode: verificationCode,
},
(error, result) => {
callback?.(error, result);
}
);
My application is a regular web application and I’ve turned on ‘Passwordless OTP’ as a grant type. Also ‘Allow Cross-Origin Authentication’ is turned on. Any help would be greatly appreciated.