From e0cc80230cfd2a6314cfd1ba7ccb74b0ad57a6b4 Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Thu, 29 May 2025 04:12:42 +0200 Subject: [PATCH] feat: add small additional check for refresh res variable --- composables/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/auth.ts b/composables/auth.ts index 5c42d73..19ac694 100644 --- a/composables/auth.ts +++ b/composables/auth.ts @@ -64,7 +64,7 @@ export const useAuth = () => { method: "POST" }) as any; console.log("finished refreshing:", res); - if (res.access_token) { + if (res && res.access_token) { accessToken.value = res.access_token; console.log("set new access token"); } else {