PHPoAuthLib
PHPoAuthLib copied to clipboard
Intermittent error
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?