fix: return json for successful userSignOut

return json when signout request is successful so that frontend can get redirect url with res?.redirect_url on signout
This commit is contained in:
Bouby308 2025-06-05 19:20:27 +08:00 committed by GitHub
parent 5e35aab292
commit eb3c080cce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -336,7 +336,7 @@ export const userSignOut = async () => {
})
.then(async (res) => {
if (!res.ok) throw await res.json();
return res;
return res.json();
})
.catch((err) => {
console.error(err);