Decor: Fix crashing

This commit is contained in:
Nuckyz 2024-11-07 15:07:00 -03:00
parent 2270b88a98
commit cd3a998c4b
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
5 changed files with 85 additions and 38 deletions

View file

@ -93,7 +93,7 @@ export const useAuthorizationStore = proxyLazy(() => zustandCreate(
} as AuthorizationState),
{
name: "decor-auth",
getStorage: () => indexedDBStorage,
storage: indexedDBStorage,
partialize: state => ({ tokens: state.tokens }),
onRehydrateStorage: () => state => state?.init()
}