From 53fc8bb6e3c5faa40d1089f124cad968b23d1167 Mon Sep 17 00:00:00 2001 From: julius Date: Tue, 11 Mar 2025 10:34:39 +0100 Subject: [PATCH] feat: add more User props --- src/api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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",