test VitePWA new config

This commit is contained in:
Romulus21
2024-02-25 14:54:46 +01:00
parent ffc4bb0678
commit 05644918cc
5 changed files with 96 additions and 47 deletions

View File

@@ -31,6 +31,9 @@ export const AuthUserProvider = ({children}: PropsWithChildren) => {
// @ts-ignore
if (e.response.status === 401) {
console.info('no user login')
if (window.location.pathname !== '/connexion') {
window.location.href = '/connexion'
}
}
} finally {
setLoadingAuthUser(false)