client/src/actions/authActions.js
author ymh <ymh.work@gmail.com>
Mon, 26 Jun 2017 16:05:47 +0200
changeset 88 2a861fed6bde
parent 52 96f8a4a59bd9
child 89 06f609adfbf8
permissions -rw-r--r--
Deauthenticate user if refresh was not possible (session expired or total delta reached)

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
  };
}