0

When you authenticate app this way:

var client = new Dropbox.Client({
    key: 'key'
});

client.authenticate({
    interactive: false
}, function(error){
    if(error){
        alert('Authentication error: ' + error);
    }
});

and then

client.authenticate();

SDK stores token and others in localStorage, so next time you don't need to redirect user to dropbox oauth page etc. But when you pass them to Dropbox.Client constructor:

var client = new Dropbox.Client({
    key: 'key',
    token: 'token',
    uid: 'uid'
});

these values are not stored in localStorage, so you have to pass them each time you want to construct Dropbox.Client. My question is:

Is it some API in Dropbox Javascript SDK to override default oauth options?

Regards, Matt

4

0 回答 0