Browse Source

fix: ignore redirection if public page

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5767/head
Pranav C 1 year ago
parent
commit
897cb58307
  1. 3
      packages/nc-gui/composables/useApi/interceptors.ts

3
packages/nc-gui/composables/useApi/interceptors.ts

@ -67,9 +67,8 @@ export function addAxiosInterceptors(api: Api<any>) {
})
.catch(async (error) => {
await state.signOut()
// todo: handle new user
navigateTo('/signIn')
if (!route.meta.public) navigateTo('/signIn')
return Promise.reject(error)
})

Loading…
Cancel
Save