Display user name in application header

This commit is contained in:
2025-11-05 08:31:47 +01:00
parent f9fb99cdb5
commit a44327ddb0
5 changed files with 147 additions and 68 deletions

View File

@@ -1,6 +1,6 @@
import { APIClient } from "./ApiClient";
export interface AuthInfo {
export interface UserInfo {
id: number;
time_create: number;
time_update: number;
@@ -58,9 +58,9 @@ export class AuthApi {
}
/**
* Get auth information
* Get user information
*/
static async GetAuthInfo(): Promise<AuthInfo> {
static async GetUserInfo(): Promise<UserInfo> {
return (
await APIClient.exec({
uri: "/auth/info",