Skip to content

Commit

Permalink
Skip org.matrix.msc2858 prefix as per the MSC
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Dec 14, 2020
1 parent 035cb9f commit 59bfdc7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/base-apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,12 @@ MatrixBaseApis.prototype.getSsoLoginUrl = function(redirectUrl, loginType, idpId
loginType = "sso";
}

let prefix = PREFIX_R0;
let url = "/login/" + loginType + "/redirect";
if (idpId) {
url += "/" + idpId;
prefix = "/_matrix/client/unstable/org.matrix.msc2858";
}

return this._http.getUrl(url, { redirectUrl }, prefix);
return this._http.getUrl(url, { redirectUrl }, PREFIX_R0);
};

/**
Expand Down

0 comments on commit 59bfdc7

Please sign in to comment.