feat: add small additional check for refresh res variable

This commit is contained in:
SauceyRed 2025-05-29 04:12:42 +02:00
parent 52eab190ee
commit e0cc80230c
Signed by: sauceyred
GPG key ID: 270B096EF6E9A462

View file

@ -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 {