Help with passwordless organization invite with nextjs-auth0

I am trying to setup an organization with passwordless users using the email connection with nextjs. Upon clicking the invite link I am unexpectedly prompted for a password. I am using New Universal Login.

The screen:
“You’ve Been Invited!”
“Log in to accept x’s invitation to join Passwordless Test…”
Email is filled in.
And there’s a password textbox with a “forgot password” link.

I have done the following

  • Enabled email connection for the organization

  • Sent an invite via management API using following parameters.

 inviter
 invitee
 client_id
  • Updated pages/api/auth/[...auth0].ts to include connection: email parameter.
export default handleAuth({
  async login(req, res) {
    const { invitation, organization, screen_hint } = req.query;

    if (invitation) {
      await handleLogin(req, res, {
        authorizationParams: {
          invitation: Array.isArray(invitation) ? invitation[0] : invitation,
          organization: Array.isArray(organization) ? organization[0] : organization,
          connection: 'email',
        },
      });
    } else if (organization) {
      await handleLogin(req, res, {
        authorizationParams: {
          organization: Array.isArray(organization) ? organization[0] : organization,
          connection: 'email',
        },
      });
    } else {
      await handleLogin(req, res, {
        authorizationParams: {
          screen_hint: typeof screen_hint === 'string' ? screen_hint : undefined,
        },
      });
    }
  },
});

What else am I missing?

If I specify the connection_id when generating the invitation, I get a 400

'{"statusCode":400,"error":"Bad Request","message":"Passwordless connections are not supported.","errorCode":"invalid_body"}',