Cannot authenticate via Magic Link

@dan.woda No that does not solve my problem. I already have that /api/auth/[...auth0].ts route configured and it’s working properly if I login using other means.

I cloned the source of the nextjs-auth0 package from GitHub and stepped through it manually. This is the line that’s returning undefined:

// auth0-session/handlers/callback.ts
expectedState = transientCookieHandler.read('state', req, res)

Is this something that needs to be set in the browser before sending the magic link, or in my authParams when sending the link via the API?