export const LOGIN = 'LOGIN';
export const LOGOUT = 'LOGOUT';
export const SESSION_CHANGE = 'SESSION_CHANGE';

export const login = (id, email, username, token) => {
	return {
		type: LOGIN,
		id: id,
		email: email,
		username: username,
		token: token
	};
}

export const logout = () => {
	return {
		type: LOGOUT
	};
}

export const sessionChange = (token) => {
	return {
		type: SESSION_CHANGE,
		token: token
	};
}