Error bad.connectoin 400 (missing property required connection)

I’ve read this: Passwordless bad connection universal login new - #6 by dbinetti (However I believe I’m not making the same mistake, I’m sending the values in the request body)…

  const response: AxiosResponse = await this.axios.post(
    `https://${AUTH0_DOMAIN}/passwordless/start`,
    {
      client_id:
        process.env.AUTH0_CLIENT_ID, 
      connection: "sms",
      phone_number: phoneNumber,
      send: "code",
    },
    {
      headers: {
        "Content-Type": "application/json",
      },
    }
  );

I have ensured all variables and request body are as expected, however I still receive a missing required property: “connection” error, when attempting to perform passwordless sms auth on react-native app

Resolved using JSON.stringify()

1 Like

Hey @ramandeep welcome to the community!

Interesting! Thanks for sharing your solution with the community :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.