mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-25 23:46:51 +00:00
Add optional requestCallbacks options to getUser (#2186)
This commit is contained in:
Vendored
+3
-1
@@ -1,3 +1,5 @@
|
||||
import { RequestCallbacks } from "../shared";
|
||||
|
||||
export interface User {
|
||||
uuid: string;
|
||||
username: string;
|
||||
@@ -55,7 +57,7 @@ export class Auth {
|
||||
signIn (options?: { attempt_temp_user_creation?: boolean }): Promise<SignInResult>;
|
||||
signOut (): void;
|
||||
isSignedIn (): boolean;
|
||||
getUser (): Promise<User>;
|
||||
getUser (options:? RequestCallbacks<User>): Promise<User>;
|
||||
whoami (): Promise<User>;
|
||||
getMonthlyUsage (): Promise<MonthlyUsage>;
|
||||
getDetailedAppUsage (appId: string): Promise<DetailedAppUsage>;
|
||||
|
||||
Reference in New Issue
Block a user