Invalid token, state does not match

Morning

What was the resolution for this? I’m using the tutorial version I downloaded for my React app and only changed the callback URL to this line:

callbackUrl: process.env.NODE_ENV === 'development' ? 'http://localhost:3000/callback' : 'https://www.mydomain.com/callback',

Now I suddenly get the “invalid token” error. If I try again, the process works perfectly. I checked the logs and I was successfully authenticated.