I'm using this fragment of code for OAuth URL:
self.m_dbxAuth.getAuthenticationUrl(
self.m_fullReceiverPath, // [redirectUri]
undefined, // [state] To help prevent cross site scripting attacks.
'code', // [authType] Auth type, defaults to 'token' or 'code'
'offline', // [tokenAccessType] null, 'legacy', 'online', 'offline'
undefined, // [scope] Scopes to request for the grant
undefined, // [includeGrantedScopes] 'user', 'team'
true // [usePKCE]
)
.then(authUrl => {
self.m_authUrl = authUrl
})
(followed by chrome.identity.launchWebAuthFlow() to execute the login workflow)
On Firefox this works flawlessly, I logged in once and never again I was asked to confirm to login again. But on Chrome I'm prompted every day to login again in the browser extension (even if I'm already logged in dropbox.com on that browser)
Is this the expected behaviour, why is it differnt in Firefox and Chrome, or are the parameters I chose for getAuthenticationUrl() wrong?
Thanks.
PS: The snipped of code is from this file: https://github.com/pmarinov/qfeeds/blob/master/qfeeds/connect_dbox.js