Skip to content

Commit

Permalink
fixes snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Jun 25, 2024
1 parent 5aebf0c commit 683aa90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ EmailPassword.init({
}

// Call the signup function to create a new SuperTokens user.
let signUpResponse = await EmailPassword.signIn(input.tenantId, input.email, input.password, undefined, input.userContext);
let signUpResponse = await EmailPassword.signUp(input.tenantId, input.email, input.password, undefined, input.userContext);
if (signUpResponse.status !== "OK") {
throw new Error("Should never come here")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ EmailPassword.init({
}

// Call the signup function to create a new SuperTokens user.
let signUpResponse = await EmailPassword.signIn(input.tenantId, input.email, input.password, undefined, input.userContext);
let signUpResponse = await EmailPassword.signUp(input.tenantId, input.email, input.password, undefined, input.userContext);
if (signUpResponse.status !== "OK") {
throw new Error("Should never come here")
}
Expand Down

0 comments on commit 683aa90

Please sign in to comment.