Created
December 1, 2020 23:46
-
-
Save mentix02/63d018a2e6e6240bcff0167b7e77dea8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LOGIN, LOGOUT, LoginAction, LogoutAction } from "./types"; | |
export const logIn = (token: string, username: string): LoginAction => ({ | |
type: LOGIN, | |
payload: { token, username }, | |
}); | |
export const logOut = (): LogoutAction => ({ | |
type: LOGOUT, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment