test VitePWA new config
This commit is contained in:
1 parent
ffc4bb0678
commit
05644918cc
5 files changed
+96
-47
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user