MCPcopy
hub / github.com/21st-dev/1code / getUser

Method getUser

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

* Get current user if authenticated

()

Source from the content-addressed store, hash-verified

151 * Get current user if authenticated
152 */
153 getUser(): AuthUser | null {
154 const data = this.load()
155 return data?.user ?? null
156 }
157
158 /**
159 * Get current token if valid

Callers 8

identifyUserFunction · 0.45
fetchUserFunction · 0.45
fetchUserFunction · 0.45
index.tsFile · 0.45
registerIpcHandlersFunction · 0.45
createWindowFunction · 0.45
storeOAuthTokenFunction · 0.45

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected