fix: re-trigger authentication after Playwright download completes

This commit is contained in:
Misaka_Company
2026-03-24 17:16:04 +08:00
parent fb46586a13
commit 2343fb2188
3 changed files with 14 additions and 7 deletions

View File

@@ -34,12 +34,15 @@ function App(): React.JSX.Element {
openUpdateDialog,
handleInstallUserRelease,
handleAdminDownloadAndInstall,
refreshUpdateDialogState
refreshUpdateDialogState,
initializeAuth
} = useAppBootstrap()
const handlePlaywrightDownloadComplete = React.useCallback(() => {
setShowPlaywrightDownload(false)
}, [setShowPlaywrightDownload])
// Re-trigger authentication after download completes
void initializeAuth()
}, [setShowPlaywrightDownload, initializeAuth])
const shouldShowLogout = currentUser?.userType === 'Admin' || isSwitchedByAdmin

View File

@@ -330,6 +330,7 @@ export function useAppBootstrap() {
openUpdateDialog,
handleInstallUserRelease,
handleAdminDownloadAndInstall,
refreshUpdateDialogState
refreshUpdateDialogState,
initializeAuth
}
}