test VitePWA new config
This commit is contained in:
@@ -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