From 36f5019a852182ecf517c906198369cfeb36f076 Mon Sep 17 00:00:00 2001 From: dafuga Date: Wed, 1 Nov 2023 17:35:01 -0700 Subject: [PATCH] fix: adding account creation method to ui interface --- src/ui.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui.ts b/src/ui.ts index d93551c..9174b44 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -61,6 +61,8 @@ export interface UserInterface { login(context: LoginContext): Promise /** Inform the UI that an error has occurred */ onError: (error: Error) => Promise + /** Inform the UI that an account creation process has started */ + onAccountCreate: () => Promise /** Inform the UI that a login call has started **/ onLogin: () => Promise /** Inform the UI that a login call has completed **/ @@ -95,6 +97,7 @@ export interface UserInterface { export abstract class AbstractUserInterface implements UserInterface { abstract login(context: LoginContext): Promise abstract onError(error: Error): Promise + abstract onAccountCreate(): Promise abstract onLogin(options?: LoginOptions): Promise abstract onLoginComplete(): Promise abstract onTransact(): Promise