mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-07 16:50:13 +00:00
fix(apiLogout): res.json()
This commit is contained in:
parent
c5c34c9e30
commit
b141c6690c
1 changed files with 0 additions and 1 deletions
|
|
@ -12,7 +12,6 @@ export const apiLogout = async (fetchSsr?: Fetch) => {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
credentials: 'include'
|
credentials: 'include'
|
||||||
});
|
});
|
||||||
return await res.json();
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw errorHandler(e, 'Logout failed');
|
throw errorHandler(e, 'Logout failed');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue