-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to implement Reddit [Possible Solution] #856
Comments
After looking into it I may have found the problem. I added this in the meantime (bandaid fix I know) and I can now access the token and my profile (thanks to @LoriKarikari 's premade provider)! This is only a quick fix so maybe there is already a base64 encoder somewhere in there that I did not notice.
This works without issues with Spotify or Twitch when I was testing, but I haven't tried more providers. |
@afoyer thanks for looking into this! We were having this issue with Reddit but also some other providers (can't remember them by heart). We can test if this fix also works for the other providers and implement this @iaincollins? |
It looks like this has been added already: next-auth/src/server/lib/oauth/client.js Lines 127 to 129 in ad791ea
Is the Reddit provider https://github.com/nextauthjs/next-auth/blob/canary/src/providers/reddit.js
) There is no documentation page for it though, and not mentioned anywhere in the docs page. Other than that, if someone can confirm it work, we could close this issue? |
@balazsorban44 I am about to create a reddit.md file for the doc page. The last time I checked (which was two months ago) everything seemed to be working including what was indicated in the commented profile section. I can also uncomment the callback and remove the top comment since the solution I provided was an answer to that. |
Awesome news! Could you please check if |
#1094 I got it to work but with a hack. |
🎉 This issue has been resolved in version 3.2.0-canary.23 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 3.3.0-canary.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Your question
Do any of you know how to make Reddit work?
What are you trying to do
I am trying to authenticate but once I authorize get_access_token fails and returns a 401 error
Feedback
Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.
The text was updated successfully, but these errors were encountered: