Open garyyeap opened 2 months ago
If you do not provide a redirect_uri
, then Imgur can not send the user back to your application. In order for the redirect URI to work, the one configured in your application must match the one configured in your Imgur Oauth account settings.
It can, witthout providing the redirect_uri
. I tested out. I believe Imugur just follow the url from their application setting but not the query string. Do I need to record a video to prove it?
Thanks for the screenshot, that clarifies things for us (since we don't have an account with every provider, it can be difficult to test sometimes). We can look at making the redirectUrl
property optional in the configuration.
Issue
I followed the instructions provided in https://github.com/FormidableLabs/react-native-app-auth/issues/516#issuecomment-2115465572.
react-native-app-auth
generated the url:However, this resulted in an error:
Since the Imgur API documentation doesn't mention the need for a
redirect_uri
, I decided to remove it from the URL:This modification successfully resolved the error.
Environment
imgur
Android
react-native
Version:0.74.5
react-native-app-auth
Version:8.0.0