emailAddress
and phoneNumber
.oauth_google
, oauth_facebook
, etc.0x
+ 40 hexadecimal characters.
create(params: SignUpParams) => Promise<SignUpResource>
params
depends on the configuration of the instance. Choices on the instance settings affect which options are available to use.create
method will return a promise of the new SignUp object. This sign up might be complete if you supply the required fields in one go. However, this is not mandatory. Our sign up process provides great flexibility and allows users to easily create multi-step sign up flows.Promise
which resolves with a SignUp
object. Check the status
attribute to see if the SignUp
has been completed or a hint on what needs to happen next.update(params: SignUpParams) => Promise<SignUpResource>
Promise
which resolves with a SignUp
object. Check the status
attribute to see if the SignUp
has been completed or a hint on what needs to happen next.prepareVerification(strategy: SignUpVerificationStrategy) => Promise<SignUpResource>
prepareVerification
is used to initiate the verification process for a field that requires it. As mentioned above, there are two fields that need to be verified: prepareVerification
sends this email.prepareVerification
sends this SMS.email_code
can only be used to verify email addresses whereas phone_code
can be used only for phone numbers.
Select the one that makes for your use case.Promise
which resolves with a SignUp
object.attemptVerification(params: SignUpVerificationAttemptParams) => Promise<SignUpResource>
Promise
which resolves with a SignUp
object. Check the status
attribute to see if the SignUp
has been completed or a hint on what needs to happen next.prepareEmailAddressVerification() => Promise<SignUpResource>
SignUp.prepareVerification("email_code")
.Promise
which resolves with a SignUp
object.attemptEmailAddressVerification(params: VerificationAttemptParams) => Promise<SignUpResource>
SignUp.attemptVerification({strategy: "email_code", ...params})
.Promise
which resolves with a SignUp
object. Check the status
attribute to see if the SignUp
has been completed or a hint on what needs to happen next.createMagicLinkFlow() => CreateMagicLinkFlowParams<StartMagicLinkFlowParams, SignUpResource>
createMagicLinkFlow()
will return two functions. startMagicLinkFlow({ redirectUrl: string }) => Promise<SignUpResource>
.cancelMagicLinkFlow() => void
.preparePhoneNumberVerification() => Promise<SignUpResource>
SignUp.prepareVerification("phone_code")
.Promise
which resolves with a SignUp
object.attemptPhoneNumberVerification(params: VerificationAttemptParams) => Promise<SignUpResource>
SignUp.attemptVerification({strategy: "phone_code", ...params})
.Promise
which resolves with a SignUp
object. Check the status
attribute to see if the SignUp
has been completed or a hint on what needs to happen next.prepareWeb3WalletVerification() => Promise<SignUpResource>
SignUp.prepareVerification("web3_metamask_signature")
.attemptPhoneNumberVerification() => Promise<SignUpResource>
SignUp.attemptVerification({strategy: "web3_metamask_signature", signature: "..." })
.authenticateWithRedirect(params: AuthenticateWithRedirectParams) => Promise<void>
Promise
which doesn't resolve to any value.authenticateWithMetamask(params: AuthenticateWithMetamaskParams) => void
0x
+ 40 hexadecimal characters
strategy
values are:email_code
and phone_code
.email_code
and phone_code
.{ startMagicLinkFlow: (params: StartMagicLinkFlowParams) => Promise<SignUpResource>, cancelMagicLinkFlow: () => void }
Promise
which resolves to a SignUpResource. You can check the SignUpResource#verifications for the verification result.email_code | phone_code
oauth_facebook | oauth_github | oauth_google | oauth_hubspot | oauth_tiktok | oauth_gitlab | oauth_discord | oauth_twitter | oauth_twitch | oauth_linkedin | oauth_dropbox | oauth_bitbucket | oauth_microsoft | oauth_notion