Appease the linter

pull/21833/head
Travis Ralston 2019-11-07 15:12:55 -07:00
parent cf80cb559e
commit f0e02f59b4
1 changed files with 2 additions and 2 deletions

View File

@ -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) {