Add display name to profile settings: User type, updateDisplayName API, ProfileSettings

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Usman Baig
2026-02-08 01:50:33 +01:00
parent 77cb9eaed1
commit d96f7cf1a4
5 changed files with 22 additions and 6 deletions

View File

@@ -58,3 +58,10 @@ export async function updateUserPreferences(preferences: UserPreferences): Promi
body: JSON.stringify(preferences),
})
}
export async function updateDisplayName(displayName: string): Promise<void> {
return apiRequest<void>('/auth/user/display-name', {
method: 'PUT',
body: JSON.stringify({ display_name: displayName }),
})
}