I'm currently working on developing a Chrome extension that integrates with Dropbox's API using OAuth2. I've thoroughly reviewed the documentation for the Identity API, but I'm struggling with determining the appropriate location to utilize
chrome.identity.launchWebAuthFlow()
.
To address this issue, I have set up a background page and included a .js script that triggers
chrome.identity.launchWebAuthFlow()
. However, I encountered the problem of receiving undefined
when attempting to log chrome.identity
, even though console.log(chrome)
does output an object to the console.
Could it be possible that there is a misunderstanding on my part? Do I need to incorporate a listener and execute the function in response to a specific event?