Swap short-lived token for long-lived token #292
-
Hello 👋 I Hope this is the right place to ask this question, otherwise feel free to redirect me wherever's appropriate and I apologise for the inconvenience. I am working on implementing an oauth flow with instagram's API. The flow goes as follows:
The issue with instagram's API is that once we get the authorization code (step 1) and retrieve the token (step 2), instagram returns a short-lived token. In that response, instagram doesn't return the
Here's the sample response from step 2: {
"access_token": "<THE_ACCESS_TOKEN>",
"user_id": "<IG_APP_SCOPED_ID>",
"permissions": "<LIST_OF_GRANTED_PERMISSIONS>"
} At the moment, I am not using I was wondering if there was a better way of doing this by maybe overriding the Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Seems like you will need a custom strategy for Instagram as the OAuth2 is for providers following the spec and Instagram is not following it |
Beta Was this translation helpful? Give feedback.
Seems like you will need a custom strategy for Instagram as the OAuth2 is for providers following the spec and Instagram is not following it