cartodb/lib/assets/javascripts/new-dashboard/router/hooks/fetch-connected-apps.js
2020-06-15 10:58:47 +08:00

11 lines
266 B
JavaScript

import store from 'new-dashboard/store';
export default function fetchOAuthApps (to, from, next) {
store.dispatch('oAuthApps/fetch', {
baseUrl: store.state.user.base_url,
userId: store.state.user.id,
apiKey: store.state.user.api_key
});
next();
}