Make signOutUser less dependent on user input
This commit is contained in:
parent
996c004f74
commit
3bcb2fc71f
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user