Make signOutUser less dependent on user input

This commit is contained in:
Kyle Corbelli 2017-09-15 19:59:47 -07:00
parent 996c004f74
commit 3bcb2fc71f

View File

@ -212,9 +212,12 @@ const generateAuthActions = (config: { [key: string]: any }): ActionsExport => {
} }
} }
const signOutUser = ( const signOutUser = () => async function (dispatch: Dispatch<{}>): Promise<void> {
userSignOutCredentials: UserSignOutCredentials, const userSignOutCredentials: UserSignOutCredentials = {
) => async function (dispatch: Dispatch<{}>): Promise<void> { 'access-token': localStorage.getItem('access-token') as string,
client: localStorage.getItem('client') as string,
uid: localStorage.getItem('uid') as string,
}
dispatch(signOutRequestSent()) dispatch(signOutRequestSent())
try { try {
await axios({ await axios({