Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

js-sdk interactive auth now sends email token #3010

Merged
merged 1 commit into from
May 22, 2019
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented May 22, 2019

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 (matrix-org/matrix-js-sdk#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.

matrix-org/synapse#5174 re-ordered steps so email auth came last, but this meant we wouldn't error until the last stage if the email was already in use. This always sends the email first so we error as soon as possible.

element-hq/element-web#9586

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 (matrix-org/matrix-js-sdk#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.

element-hq/element-web#9586
@dbkr dbkr requested a review from a team May 22, 2019 10:57
@bwindels bwindels requested review from bwindels and removed request for a team May 22, 2019 11:46
@dbkr dbkr merged commit 03d092c into develop May 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants