"Invalid state" error during Auth0 WordPress redirect

Just updating in regards to the ‘BeforeValidException’.

I have been debugging and the redirect_login() always fails when decoding the id_token (JWT::decode()) with the time exception. When I look at the timestamps that are being compared there is todays date and a date in July 1974 which is why it is failing at this point.

However I am not sure why the state is being returned with an invalid date. You mentioned that stopping caching the site URL when it has an auth0 parameter in it could potentially be fix. Could you advise/point me in a direction about how to go about this in Wordpress? Sorry, I am quite new to Wordpress and am just getting familiar with how it works.