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