mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-30 23:14:37 +00:00
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:
co-authored by
Claude Sonnet 4.6
Steven Enamakel
parent
05451f5c33
commit
b4c19b105b
@@ -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', {});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user