This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/src/api/user.ts

16 lines
349 B
TypeScript
Raw Normal View History

import { Primitive } from "lit-html/lib/parts";
import { DefaultClient } from "./client";
export class User {
pk?: number;
username?: string;
name?: string;
is_superuser?: boolean;
email?: boolean;
avatar?: string;
static me(): Promise<User> {
return DefaultClient.fetch<User>(["core", "users", "me"]);
}
}