Getting errors on invalid redirect URI
Closed this issue · 4 comments
jlei523 commented
Slotos commented
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.
jlei523 commented
@Slotos Where can I pass redirect_uri
into passport-reddit? The passport-reddit
documentation doesn't mention anything about it.
Thanks!
Slotos commented
It's copied from callbackURL
in passport-oauth2
, which this library is a wrapper around.