diff --git a/src/api.ts b/src/api.ts index 41793a3..fe5f485 100644 --- a/src/api.ts +++ b/src/api.ts @@ -30,15 +30,18 @@ export async function apiAuth( } export type User = { + id: number; username: string; + display_name: string; full_name: string; email: string; player_id: number; + number: string; scopes: string; }; export async function currentUser(): Promise { - const req = new Request(`${baseUrl}api/users/me/`, { + const req = new Request(`${baseUrl}api/player/me`, { method: "GET", headers: { "Content-Type": "application/json",