Skip to content

Commit

Permalink
Throw error so client can handle internally
Browse files Browse the repository at this point in the history
  • Loading branch information
andyslack committed Dec 19, 2024
1 parent 17d87f1 commit 41126eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nuxtjs/src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ export default defineNuxtPlugin(({ $config }) => {
if (e.response?.status === 401 || e.response?.status === 403) {
Logout()
}

throw new Error(e)
}

async function AuthCheck(): Promise<boolean> {
Expand Down

0 comments on commit 41126eb

Please sign in to comment.