You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-05 00:42:10 +03:00
Only pass id_server if we had one to begin with (#4200)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
69c474dda7
commit
c9075b3dba
@@ -343,8 +343,10 @@ export class InteractiveAuth<T> {
|
|||||||
sid: this.emailSid,
|
sid: this.emailSid,
|
||||||
client_secret: this.clientSecret,
|
client_secret: this.clientSecret,
|
||||||
};
|
};
|
||||||
const idServerParsedUrl = new URL(this.matrixClient.getIdentityServerUrl()!);
|
const isUrl = this.matrixClient.getIdentityServerUrl();
|
||||||
creds.id_server = idServerParsedUrl.host;
|
if (isUrl) {
|
||||||
|
creds.id_server = new URL(isUrl).host;
|
||||||
|
}
|
||||||
authDict = {
|
authDict = {
|
||||||
type: EMAIL_STAGE_TYPE,
|
type: EMAIL_STAGE_TYPE,
|
||||||
// TODO: Remove `threepid_creds` once servers support proper UIA
|
// TODO: Remove `threepid_creds` once servers support proper UIA
|
||||||
|
Reference in New Issue
Block a user