From eb3c080cce06eff92c38b844c781b750d2463160 Mon Sep 17 00:00:00 2001 From: Bouby308 Date: Thu, 5 Jun 2025 19:20:27 +0800 Subject: [PATCH] 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 --- src/lib/apis/auths/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/apis/auths/index.ts b/src/lib/apis/auths/index.ts index 169a6c14f..842edd9c9 100644 --- a/src/lib/apis/auths/index.ts +++ b/src/lib/apis/auths/index.ts @@ -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);