You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
This commit is contained in:
@@ -5836,14 +5836,12 @@ export class MatrixClient extends EventEmitter {
|
||||
* @return {string} The HS URL to hit to begin the SSO login process.
|
||||
*/
|
||||
public getSsoLoginUrl(redirectUrl: string, loginType = "sso", idpId?: string): Promise<string> {
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user