PHPoAuthLib icon indicating copy to clipboard operation
PHPoAuthLib copied to clipboard

Intermittent error

Open albertleao opened this issue 7 years ago • 0 comments

About 1% of the time when I have users authenticate with Reddit I receive the following errors:

Exception: State not found in session, are you sure you stored it?
/var/app/current/vendor/lusitanian/oauth/src/OAuth/Common/Storage/Session.php 155

And

Exception: /var/app/current/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php 265

I'm using a copy of the Reddit example from the example folder. Has anyone else ran into this issue? Would using the $storage->storeAuthorizationState($service, $state) be the correct way to force the $state to be set?

albertleao avatar Feb 14 '18 08:02 albertleao