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 = (
|
||||
userSignOutCredentials: UserSignOutCredentials,
|
||||
) => async function (dispatch: Dispatch<{}>): Promise<void> {
|
||||
const signOutUser = () => async function (dispatch: Dispatch<{}>): Promise<void> {
|
||||
const userSignOutCredentials: UserSignOutCredentials = {
|
||||
'access-token': localStorage.getItem('access-token') as string,
|
||||
client: localStorage.getItem('client') as string,
|
||||
uid: localStorage.getItem('uid') as string,
|
||||
}
|
||||
dispatch(signOutRequestSent())
|
||||
try {
|
||||
await axios({
|
||||
|
|
Loading…
Reference in New Issue
Block a user