const LOGIN = "auth/LOGIN";
const LOGIN_SUCCESS = "auth/LOGIN_SUCCESS";
const LOGOUT = "auth/LOGOUT";
const auth = {
  login: ({
    code,
    redirectUri,
    clientId,
    responseType,
    scope,
    isConsumerUser
  }) => ({
    type: LOGIN,
    payload: {
      code,
      redirectUri,
      clientId,
      responseType,
      scope,
      isConsumerUser
    }
  }),
  logout: ({
    clientId,
    redirectUri,
    responseType,
    scope,
    code
  }) => ({
    type: LOGOUT,
    payload: { clientId, redirectUri, responseType, scope, code }
  })
};
export {
  LOGIN,
  LOGIN_SUCCESS,
  LOGOUT,
  auth
};
