My web application has been failing for an unknown amount of time and was only noticed recently. Current behavior is that it is supposed to open a new window and run the following code snippet in that window to connect to dropbox:
var baseaddress = $("#baseaddress").val();
client = new Dropbox.Dropbox({ clientId: dropBoxClientid });
var authUrl = client.getAuthenticationUrl("https://"+baseaddress+'/delivery/download/dropboxredirect.url');
window.location = authUrl;
However I am seeing a console error in the chrome browser dev tools saying:
Uncaught TypeError: client.getAuthenticationUrl is not a function
When inspecting the client variable I do see it being populated and seemingly correctly too. It fetches Dropbox-sdk.min.js from unpkg.com > dropbox@9.6.0/dist correctly which is where it is populating the client variable from. I see getAuthenticationUrl is in a json object in the pulled in JS, but is not a function. Is anyone able to help me figure out what needs to changed in the distro that caused this to no longer work? I was not the original developer who implemented this and I am not sure what version it last worked on unfortunately. Thanks!