forked from mystiq/hydrogen-web
rename ssoEndpointLink to createSSORedirectURL
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
daf7af17b1
commit
2d842c7174
2 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ export class StartSSOLoginViewModel extends ViewModel{
|
|||
|
||||
async startSSOLogin() {
|
||||
await this.platform.settingsStorage.setString("sso_ongoing_login_homeserver", this._homeserver);
|
||||
const link = this._sso.ssoEndpointLink(this.urlCreator.createSSOCallbackURL());
|
||||
const link = this._sso.createSSORedirectURL(this.urlCreator.createSSOCallbackURL());
|
||||
this.platform.openUrl(link);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ export class SSOLoginHelper{
|
|||
this._homeserver = homeserver;
|
||||
}
|
||||
|
||||
ssoEndpointLink(redirectURL) {
|
||||
return `${this._homeserver}/_matrix/client/r0/login/sso/redirect?redirectUrl=${redirectURL}`;
|
||||
createSSORedirectURL(returnURL) {
|
||||
return `${this._homeserver}/_matrix/client/r0/login/sso/redirect?redirectUrl=${returnURL}`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue