Display user name in application header
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user