MCPcopy Create free account
hub / github.com/ShipSecAI/studio / resetAuthStore

Function resetAuthStore

frontend/src/pages/__tests__/SecretsManager.test.tsx:89–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87const useSecretStoreMock = useSecretStore as any;
88
89async 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
103const ISO = '2024-01-01T00:00:00.000Z';
104

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected