90eb3ce9ec
We previously sent it in componentWillMount of the email token auth component which definitely gets us on react's naughtly list. We now pass the js-sdk a callback it can call at the appropriate time to send the token (https://github.com/matrix-org/matrix-js-sdk/pull/926). We should make password reset and adding email addresses work the same way, but currently they don't even use the interactive-auth helpers(!) so they're unaffected. https://github.com/vector-im/riot-web/issues/9586