We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69c474d commit c9075b3Copy full SHA for c9075b3
src/interactive-auth.ts
@@ -343,8 +343,10 @@ export class InteractiveAuth<T> {
343
sid: this.emailSid,
344
client_secret: this.clientSecret,
345
};
346
- const idServerParsedUrl = new URL(this.matrixClient.getIdentityServerUrl()!);
347
- creds.id_server = idServerParsedUrl.host;
+ const isUrl = this.matrixClient.getIdentityServerUrl();
+ if (isUrl) {
348
+ creds.id_server = new URL(isUrl).host;
349
+ }
350
authDict = {
351
type: EMAIL_STAGE_TYPE,
352
// TODO: Remove `threepid_creds` once servers support proper UIA
0 commit comments