MCPcopy Create free account
hub / github.com/AntiHub-Project/AntiHub / getStoredUser

Function getStoredUser

lib/api.ts:491–495  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

489 * 获取本地存储的用户信息
490 */
491export function getStoredUser(): UserResponse | null {
492 if (typeof window === 'undefined') return null;
493 const userStr = localStorage.getItem('user');
494 return userStr ? JSON.parse(userStr) : null;
495}
496
497/**
498 * 获取本地存储的 token

Callers 1

AppSidebarFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected