mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
rename ssoEndpointLink to createSSORedirectURL
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
daf7af17b1
commit
2d842c7174
@ -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 New Issue
Block a user