auth0-extensions/auth0-sso-dashboard-extension

View on GitHub
client/actions/connection.js

Summary

Maintainability
A
50 mins
Test Coverage
import axios from 'axios';
import * as constants from '../constants';

export function fetchConnections() { // eslint-disable-line import/prefer-default-export
  return {
    type: constants.FETCH_CONNECTIONS,
    payload: {
      promise: axios.get('/api/connections', {
        responseType: 'json'
      })
    }
  };
}