My application is throwing this exception on mobile but not on other versions.
'Auth0\SDK\Exception\CoreException' with message 'Invalid state' in
/home/content/85/8824185/html/vendor/auth0/auth0-php/src/Auth0.php:558
The issue seems to be stemming from SessionStateHandler, more specifically validate. Running some validation on this code shows that self::STATE_NAME and $state are equal, but $valid is set to 1 on Desktop Firefox, however on mobile it is set to blank, causing the invalid state exception.
public function validate($state)
{
$valid = $this->store->get(self::STATE_NAME) == $state;
$this->store->delete(self::STATE_NAME);
return $valid;
}
Desktop user agent: Firefox 71.0
Mobile user agent: Android 9 Firefox 68.0
Do you know why this would be happening? Thank you!