fix(auth): scope clearAllAppData to active user; fix re-onboarding race; drop dead API call (#1816)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
This commit is contained in:
YellowSnnowmann
2026-05-15 14:57:30 -07:00
committed by GitHub
co-authored by Claude Sonnet 4.6 Steven Enamakel
parent 05451f5c33
commit b4c19b105b
6 changed files with 189 additions and 24 deletions
-9
View File
@@ -1,5 +1,4 @@
import type { User } from '../../types/api';
import { apiClient } from '../apiClient';
import { callCoreCommand } from '../coreCommandClient';
/**
@@ -13,12 +12,4 @@ export const userApi = {
getMe: async (): Promise<User> => {
return await callCoreCommand<User>('openhuman.auth_get_me');
},
/**
* Mark onboarding complete for the current user.
* POST /settings/onboarding-complete
*/
onboardingComplete: async (): Promise<void> => {
await apiClient.post<{ success: boolean; data: unknown }>('/settings/onboarding-complete', {});
},
};