fix(ui): remove index.html from service worker cache after creating admin user (#3642)

This commit is contained in:
Kendall Garner
2025-01-12 23:32:02 +00:00
committed by GitHub
parent 3179966270
commit 920fd53e58
3 changed files with 24 additions and 0 deletions
+2
View File
@@ -1,6 +1,7 @@
import { jwtDecode } from 'jwt-decode'
import { baseUrl } from './utils'
import config from './config'
import { removeHomeCache } from './utils/removeHomeCache'
// config sent from server may contain authentication info, for example when the user is authenticated
// by a reverse proxy request header
@@ -48,6 +49,7 @@ const authProvider = {
storeAuthenticationInfo(response)
// Avoid "going to create admin" dialog after logout/login without a refresh
config.firstTime = false
removeHomeCache()
return response
})
.catch((error) => {