CartoDB/cartodb20

View on GitHub
lib/assets/javascripts/new-dashboard/router/hooks/fetch-connected-apps.js

Summary

Maintainability
A
2 hrs
Test Coverage
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();
}