MCPcopy Create free account
hub / github.com/MemTensor/MemOS / resetToPending

Method resetToPending

packages/memos-core/src/hub/user-manager.ts:167–178  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

165 }
166
167 resetToPending(userId: string): ManagedHubUser | null {
168 const user = this.store.getHubUser(userId);
169 if (!user) return null;
170 const updated = {
171 ...user,
172 status: "pending" as const,
173 tokenHash: "",
174 approvedAt: null,
175 };
176 this.store.upsertHubUser(updated);
177 return updated;
178 }
179}

Callers 1

handleMethod · 0.45

Calls 2

getHubUserMethod · 0.45
upsertHubUserMethod · 0.45

Tested by

no test coverage detected