MCPcopy Index your code
hub / github.com/21st-dev/1code / updateUser

Method updateUser

src/main/auth-store.ts:194–201  ·  view source on GitHub ↗

* Update user data (e.g., after profile update)

(updates: Partial<AuthUser>)

Source from the content-addressed store, hash-verified

192 * Update user data (e.g., after profile update)
193 */
194 updateUser(updates: Partial<AuthUser>): AuthUser | null {
195 const data = this.load()
196 if (!data) return null
197
198 data.user = { ...data.user, ...updates }
199 this.save(data)
200 return data.user
201 }
202}

Callers 2

AgentsProfileTabFunction · 0.45
registerIpcHandlersFunction · 0.45

Calls 2

loadMethod · 0.95
saveMethod · 0.95

Tested by

no test coverage detected