Login as patient (paswordless), login as provider (email): issue with nextjs-auth0

I’m using @auth0/nextjs-auth0": “^3.5.0”

In my next app, I have a login for one group of users which I want to be passwordless/sms (patients) and another group (providers), which I want to login as email:

<Link href="/api/auth/login?connection=sms">
                Patient Login
</Link>
<Link href="/api/auth/login?connection=email">
                Surgeon Login
</Link>

The routes are exposed like this:

// pages/api/auth/[...auth0].ts
import { handleAuth } from "@auth0/nextjs-auth0";
export default handleAuth(); in a file

Do I have to pass in the query parameter to handleAuth() function Or maybe in general how can I handle this situation?

Hi @maxcarey

You should be able to pass the query parameters to handleAuth() or handleLogin().

Let me know if you have any other questions on the matter!

Kind Regards,
Nik

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