test VitePWA new config

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

No files matched your search

+3
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)