Hi first time poster here.
I've got the authorization flow successfully integrated up to the point where the callback url appears in the browser address window, ie:
http://localhost:3000/api/dropboxcallback?code=Ws4_UVwyTaIqwerqwasdfu5BM5xJGSNdXxF_y5V9JGyrs
however, this remains static and 'null' appears in the browser.
In the browser console,
GET http://localhost:3000/api/dropboxcallback?code=Ws4_UVwyTaIAAAAAAAAu5BM5xJGSNdXxF_y5V9JGyrs 401 (Unauthorized)
appears.
If the browser address bar is manually executed, ie return is pressed while the address bar is in focus (and within the 5? second time limit), the api/dropboxcallback route is successfully executed and the access token is generated.
I'm following:
https://dropbox.tech/developers/using-oauth-2-0-with-offline-access
https://developers.dropbox.com/oauth-guide
and believe it may be necessary to have the 'state' parameter in the initial `https://www.dropbox.com/oauth2/authorize` call.
I have this url `http://localhost:3000/api/dropboxcallback` registered as a OAuth 2 Redirect URI in the Dropbox app console.
Would anybody be so kind as to shed some light on what I should do next, or suggest where the problem may lie?
Any help greatly appreciated.