mirror of https://github.com/vector-im/riot-web
Appease the linter
parent
cf80cb559e
commit
f0e02f59b4
|
@ -184,9 +184,9 @@ export default class IdentityAuthClient {
|
||||||
try {
|
try {
|
||||||
const hsOpenIdToken = await MatrixClientPeg.get().getOpenIdToken();
|
const hsOpenIdToken = await MatrixClientPeg.get().getOpenIdToken();
|
||||||
// XXX: The spec is `token`, but we used `access_token` for a Sydent release.
|
// XXX: The spec is `token`, but we used `access_token` for a Sydent release.
|
||||||
const { access_token, token } =
|
const { access_token: accessToken, token } =
|
||||||
await this._matrixClient.registerWithIdentityServer(hsOpenIdToken);
|
await this._matrixClient.registerWithIdentityServer(hsOpenIdToken);
|
||||||
let identityAccessToken = token ? token : access_token;
|
const identityAccessToken = token ? token : accessToken;
|
||||||
if (check) await this._checkToken(identityAccessToken);
|
if (check) await this._checkToken(identityAccessToken);
|
||||||
return identityAccessToken;
|
return identityAccessToken;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue