mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
Feat/improve cache load state (#118)
* Fix auth logout redirect and add tree node spacing * Remove app loader animation and related cleanup Removes custom app loader UI from index.html and useEffect in App.tsx that handled loader fade-out transition
This commit is contained in:
1 parent
bfe7954825
commit
6b30d13124
4 files changed
+11
-45
No files matched your search
@@ -112,10 +112,14 @@ export function AuthProvider({ children }: AuthProviderProps) {
|
||||
}, [])
|
||||
|
||||
const logout = useCallback(async () => {
|
||||
await signOut()
|
||||
await refetch()
|
||||
navigate('/login', { replace: true })
|
||||
}, [refetch, navigate])
|
||||
await signOut({
|
||||
fetchOptions: {
|
||||
onSuccess: () => {
|
||||
window.location.href = '/login'
|
||||
},
|
||||
},
|
||||
})
|
||||
}, [])
|
||||
|
||||
const refreshSession = useCallback(async () => {
|
||||
await refetch()
|
||||
|
||||
Reference in new issue
Block a user