feat: add small additional check for refresh res variable
This commit is contained in:
parent
52eab190ee
commit
e0cc80230c
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue