Slotos/passport-reddit

Getting errors on invalid redirect URI

Closed this issue · 4 comments

image
Any ideas?

https://github.com/reddit-archive/reddit/wiki/OAuth2 demands you set your request redirect_uri exactly to the value you set in https://www.reddit.com/prefs/apps.

However, reddit OAuth implementation did have its quirks in the past. E.g. https://www.reddit.com/r/redditdev/comments/17ka6l/oauth_invalid_redirect_uri_parameter/c86hvnd/

Check whether your request is properly formed and keep in mind that redirect_uri might be a red herring.

@Slotos Where can I pass redirect_uri into passport-reddit? The passport-reddit documentation doesn't mention anything about it.

Thanks!

It's copied from callbackURL in passport-oauth2, which this library is a wrapper around.

@Slotos Thank you! It worked. I made a pull request to fix and clarify the example.