forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB4e0a329Burak Boduroğlu2 months ago537 commits

getUserProfile.ts8 lines, 390 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Profile } from "../client";
3
4// Any authenticated account may read any profile, except a parent, who reaches
5// only their own and their linked students' (403 otherwise).
6export function getUserProfile(id: string, signal?: AbortSignal): Promise<Profile> {
7 return client<Profile>(`/users/${encodeURIComponent(id)}/profile`, { signal });
8}