wohali / oauth2-discord-new

New Discord Provider for the OAuth 2.0 Client
MIT License
118 stars 22 forks source link

Fatal error after a refresh. #32

Closed thibaultcrn1 closed 3 years ago

thibaultcrn1 commented 3 years ago

Hello, I find this error : Fatal error: Uncaught Wohali\OAuth2\Client\Provider\Exception\DiscordIdentityProviderException: {"error":"invalid_request","error_description":"Invalid \"code\" in request."} in C:\wamp64\www\walter-web\vendor\wohali\oauth2-discord-new\src\Provider\Exception\DiscordIdentityProviderException.php on line 47

when I refresh my web page. Thanks in advance, Thibault.

wohali commented 3 years ago

Likely this means that the code you were given expired before it was exchanged, or it was already exchanged.

If you are using the sample webpage I provide in the documentation, it's not meant to be refreshed, it is a demonstration only and would need full cache flushing and reload on a different page to work a second time.

If you need more assistance, let me know, but for now I'll close this issue.