1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Add getEmailSid

Other places sometimes need to re-use the email sid to send proof
of ownership of a email address to somewhere else.
This commit is contained in:
David Baker
2017-03-03 17:40:26 +00:00
parent c7a0a560d8
commit 7e2a256229

View File

@@ -215,6 +215,14 @@ InteractiveAuth.prototype = {
this._doRequest(auth, ignoreFailure);
},
/**
* Gets the sid for the email validation session
* Specific to m.login.email.identity
*/
getEmailSid: function() {
return this._emailSid;
},
/**
* Sets the sid for the email validation session
* This must be set in order to successfully poll for completion