Skip to content

Commit

Permalink
fix(providers): use client_secret_post auth method for Instagram (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
iketiunn committed Jun 13, 2022
1 parent 8c5d9fa commit 92dfc3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/next-auth/src/providers/instagram.js
Expand Up @@ -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',
},
async profile(profile) {
return {
id: profile.id,
Expand Down

0 comments on commit 92dfc3c

Please sign in to comment.