examples/demo-app/src/utils/cloud-providers/dropbox.js
function getAccessToken() {
  let token = dropbox.getAccessToken();
  if (!token && window.localStorage) {
    const jsonString = window.localStorage.getItem('dropbox');
    token = jsonString && JSON.parse(jsonString).token;
    if (token) {
      dropbox.setAccessToken(token);
    }
  }

  return (token || '') !== '' ? token : null;
}
function getAccessToken() {
  let token = dropbox.getAccessToken();
  if (!token && window.localStorage) {
    const jsonString = window.localStorage.getItem('dropbox');
    token = jsonString && JSON.parse(jsonString).token;
    if (token) {
      dropbox.setAccessToken(token);
    }
  }

  return (token || '') !== '' ? token : null;
}
function getAccessToken ( ) { let token = dropbox . getAccessToken ( ) ; if ( ! token && window . localStorage ) { const jsonString = window . localStorage . getItem ( 'dropbox' ) ; token = jsonString && JSON . parse ( jsonString ) . token ; if ( token ) { dropbox . setAccessToken ( token ) ; } } return ( token || '' ) !== '' ? token : null ; }
Provides the current dropbox auth token. If stored in localStorage is set onto dropbox handler and returned
@returns {any}
Provides the current dropbox auth token . If stored in localStorage is set onto dropbox handler and returned