client/src/actions/authActions.js
author ymh <ymh.work@gmail.com>
Mon, 19 Jun 2017 18:32:27 +0200
changeset 57 2e4e9f9ebc4f
parent 52 96f8a4a59bd9
child 89 06f609adfbf8
permissions -rw-r--r--
Take client from context

import * as types from '../constants/actionTypes';

export const loginSubmit = (username, password) => {
  return {
    type: types.AUTH_LOGIN_SUBMIT,
    username,
    password
  };
}

export const logout = () => {
  return {
    type: types.AUTH_LOGOUT
  };
}