Skip to content

Commit

Permalink
refactor: changes newUserSignupClient to newUserSignup
Browse files Browse the repository at this point in the history
  • Loading branch information
linnall committed Nov 14, 2024
1 parent aa12a59 commit 529fe0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion account-kit/signer/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ export abstract class BaseAlchemySigner<TClient extends BaseSignerClient>
})();

// trigger new user event on signer from client
this.inner.on("newUserSignupClient", () => {
this.inner.on("newUserSignup", () => {
this.emitNewUserEvent(true);
});

Expand Down
2 changes: 1 addition & 1 deletion account-kit/signer/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ export class AlchemySignerWebClient extends BaseSignerClient<ExportWalletParams>
authenticatingType: "oauth",
}).then((user) => {
if (isSignup) {
eventEmitter.emit("newUserSignupClient");
eventEmitter.emit("newUserSignup");
}

resolve(user);
Expand Down
2 changes: 1 addition & 1 deletion account-kit/signer/src/client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export type AuthenticatingEventMetadata = {

export type AlchemySignerClientEvents = {
connected(user: User): void;
newUserSignupClient(): void;
newUserSignup(): void;
authenticating(data: AuthenticatingEventMetadata): void;
connectedEmail(user: User, bundle: string): void;
connectedPasskey(user: User): void;
Expand Down

0 comments on commit 529fe0a

Please sign in to comment.