Skip to content

Commit

Permalink
fix: adding account creation method to ui interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Nov 2, 2023
1 parent 6a8188d commit 36f5019
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export interface UserInterface {
login(context: LoginContext): Promise<UserInterfaceLoginResponse>
/** Inform the UI that an error has occurred */
onError: (error: Error) => Promise<void>
/** Inform the UI that an account creation process has started */
onAccountCreate: () => Promise<void>
/** Inform the UI that a login call has started **/
onLogin: () => Promise<void>
/** Inform the UI that a login call has completed **/
Expand Down Expand Up @@ -95,6 +97,7 @@ export interface UserInterface {
export abstract class AbstractUserInterface implements UserInterface {
abstract login(context: LoginContext): Promise<UserInterfaceLoginResponse>
abstract onError(error: Error): Promise<void>
abstract onAccountCreate(): Promise<void>
abstract onLogin(options?: LoginOptions): Promise<void>
abstract onLoginComplete(): Promise<void>
abstract onTransact(): Promise<void>
Expand Down

0 comments on commit 36f5019

Please sign in to comment.