/**
* Ensure that the Dropbox user authenticated with the given oauth credentials
* is in the datastore.
*/
private static User upsertUser(String token, String secret) {
DropboxClient client = DropboxClientFactory.create(token, secret);
DbxAccount account = client.getAccount();
return User.upsert(account, token, secret);
}