From 7e2a2562299fe536f32d436abe2ac1b7469adde3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 3 Mar 2017 17:40:26 +0000 Subject: [PATCH] Add getEmailSid Other places sometimes need to re-use the email sid to send proof of ownership of a email address to somewhere else. --- src/interactive-auth.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/interactive-auth.js b/src/interactive-auth.js index 6dd51e661..1a4515d96 100644 --- a/src/interactive-auth.js +++ b/src/interactive-auth.js @@ -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