on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
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
};
}