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

Function getCurrentUser

lib/api.ts:452–456  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450 * 获取当前用户信息
451 */
452export async function getCurrentUser(): Promise<UserResponse> {
453 return fetchWithAuth<UserResponse>(`${API_BASE_URL}/api/auth/me`, {
454 method: 'GET',
455 });
456}
457
458/**
459 * 加入Beta计划

Callers 5

checkBetaStatusFunction · 0.90
loadAccountsFunction · 0.90
loadUserInfoFunction · 0.90
checkBetaStatusFunction · 0.90
loadDataFunction · 0.90

Calls 1

fetchWithAuthFunction · 0.85

Tested by

no test coverage detected