Skip to content
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

fix(providers): send client_id and client_secret in body for Instagram Provider #4705

Merged
merged 1 commit into from Jun 13, 2022

Conversation

iketiunn
Copy link
Contributor

☕️ Reasoning

Found that Instagram only accepts client_id and client_secret in the post body.

Although #3381 can fix it too.
But I think the client meta options are a more clean way to fix it.

refs:

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

Fixes: #3564

📌 Resources

@vercel
Copy link

vercel bot commented Jun 12, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
next-auth ⬜️ Ignored (Inspect) Jun 12, 2022 at 1:24PM (UTC)

@github-actions github-actions bot added core Refers to `@auth/core` providers labels Jun 12, 2022
@@ -35,6 +35,9 @@ export default function Instagram(options) {
token: "https://api.instagram.com/oauth/access_token",
userinfo:
"https://graph.instagram.com/me?fields=id,username,account_type,name",
client: {
token_endpoint_auth_method: 'client_secret_post',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! That was my assumption as well in #3381 (comment)

@balazsorban44 balazsorban44 changed the title fix(instagram): send client_id and client_secret in body fix(providers): send client_id and client_secret in body for Instagram Provider Jun 13, 2022
@balazsorban44 balazsorban44 merged commit 92dfc3c into nextauthjs:main Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core` providers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Authorization with Instagram fails
2 participants