Add Patreon Provider #3519
Replies: 3 comments 4 replies
-
From the link you sent, they seem to have an OAuth provider, so it should be straightforward to integrate with NextAuth.js |
Beta Was this translation helpful? Give feedback.
-
I could build a working patreon provider, despite not being an expert. For what it's worth, here's the code I came up with. Feel free to modify it and correct it, I'm by no means an expert, but it seems to be working. Here's the provider configuration in api/auth/[...nextauth].js :
I like having my parameters in an ENV file, and here they are :
|
Beta Was this translation helpful? Give feedback.
-
The above configuration is for NextAuth v3 and patreon OAuth2 v1 . Kind of complex with all those version numbers. Here's a working one for NextAuth v4 and Patreon OAuth2 v2, fully up to date at the time I'm writing this :
The env variables are the same as above. Enjoy ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Just saw that there is a Patreon API that can be used to authenticate users (patrons).
Is there a way to integrate this into next-auth, or is there a reason this hasn't be or shouldn't be done?
Beta Was this translation helpful? Give feedback.
All reactions