I have an iPhone application which uses Laravel for its back-end, it must be published in app store, but app store rejected the app because they have the following error:
The resource owner or authorization server denied the request. {"exception":"[object] (League\OAuth2\Server\Exception\OAuthServerException(code: 9): The resource owner or authorization server denied the request. at /var/www/mednfit/vendor/league/oauth2-server/src/Exception/OAuthServerException.php:205)
But I don't have this error. What does this mean?
This exception related to expired access token.
You can add \League\OAuth2\Server\Exception\OAuthServerException::class
to your $dontReport
array in app/Exceptions/Handler.php
. This will, however, prevent logging of all OAuthServerException
exceptions, even those not related to your expired access token.
Source: Laracasts: Error Log Problems When Using Laravel Passport for User Login AuthenticationError Log Problems When Using Laravel Passport for User Login Authentication
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With