()
| 87 | const useSecretStoreMock = useSecretStore as any; |
| 88 | |
| 89 | async function resetAuthStore() { |
| 90 | const persist = (useAuthStore as typeof useAuthStore & { persist?: any }).persist; |
| 91 | if (persist?.clearStorage) { |
| 92 | await persist.clearStorage(); |
| 93 | } |
| 94 | useAuthStore.setState({ |
| 95 | token: null, |
| 96 | userId: null, |
| 97 | organizationId: DEFAULT_ORG_ID, |
| 98 | roles: ['ADMIN'], |
| 99 | provider: 'local', |
| 100 | }); |
| 101 | } |
| 102 | |
| 103 | const ISO = '2024-01-01T00:00:00.000Z'; |
| 104 |
no outgoing calls
no test coverage detected