Skip to content

Commit

Permalink
fix(use-custom-fetch): do not await in non-async function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 16, 2025
1 parent 0ec6787 commit 8d23c7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineNuxtPlugin((nuxtApp) => {
},
onResponseError({ response }) {
if (response.status === 401) {
await nuxtApp.runWithContext(() => navigateTo('/login'))
return nuxtApp.runWithContext(() => navigateTo('/login'))
}
},
})
Expand Down

0 comments on commit 8d23c7f

Please sign in to comment.