feat: add more User props

This commit is contained in:
julius 2025-03-11 10:34:39 +01:00
parent 92a98064e5
commit 53fc8bb6e3
Signed by: julius
GPG Key ID: C80A63E6A5FD7092

View File

@ -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<User> {
const req = new Request(`${baseUrl}api/users/me/`, {
const req = new Request(`${baseUrl}api/player/me`, {
method: "GET",
headers: {
"Content-Type": "application/json",