We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a11ba63 commit 1928678Copy full SHA for 1928678
plugins/axios.ts
@@ -17,7 +17,7 @@ const axios: Plugin = ({$axios, redirect, $auth, app}) => {
17
},
18
async (error) => {
19
const status = parseInt(error.response && error.response.status);
20
- const shouldRefresh = [401, 403].includes(code);
+ const shouldRefresh = [401, 403].includes(status);
21
if (shouldRefresh) {
22
await $auth.logout();
23
}
0 commit comments