When my user (who doesn’t have create yet an account) clicks on an invitation link, it get redirect to redirect_uri http://localhost:3000/api/auth/auth0/callback
But it failed by this message error.
ERROR [auth] Failed to handle callback from auth0 [error]: Invalid request, an initial state could not be found
try {
await auth0.handleCallback(req, res); // callback here
} catch (err) {
error( "Failed to handle callback from auth0", err);
}
What I am doing wrong?
The invitation link looks that :
https://mydomain.au.auth0.com/passwordless/verify_redirect?scope=openid&response_type=token&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fapi%2Fauth%2Fauth0%2Fcallback&verification_code=XXXXX&connection=email&client_id=XXXXXXX&email=XXXXX
@auth0/nextjs-auth0 0.16.0