matrix-org / matrix-js-sdk

Matrix Client-Server SDK for JavaScript
Apache License 2.0
1.49k stars 577 forks source link

Register via email workflow #4251

Closed nikiforos-dev closed 1 week ago

nikiforos-dev commented 1 week ago

What is the chain of function required to register a user via the email verification step? Do you somehow have to string together client.requestRegisterEmailToken(), client.requestEmailToken(), and something else? There is a lack of documentation on complex workflows.

t3chguy commented 1 week ago

requestRegisterEmailToken is indeed relevant, requestEmailToken is not, as that's for adding an email to an existing account. During the registration UIA you do call requestRegisterEmailToken then after the link in the email has been clicked that phase of UIA will be completed and the API will be successful. This is not a support forum, if you need help visit #matrix-dev:matrix.org