diff --git a/src/matrix/Client.js b/src/matrix/Client.js index 027fd931..c1d48968 100644 --- a/src/matrix/Client.js +++ b/src/matrix/Client.js @@ -490,9 +490,9 @@ export class Client { encoding: this._platform.encoding, crypto: this._platform.crypto, }); - await oidcApi.revokeToken({ token: sessionInfo.accessToken, type: "access" }); + await oidcApi.revokeToken({ token: sessionInfo.accessToken, type: "access_token" }); if (sessionInfo.refreshToken) { - await oidcApi.revokeToken({ token: sessionInfo.refreshToken, type: "refresh" }); + await oidcApi.revokeToken({ token: sessionInfo.refreshToken, type: "refresh_token" }); } } else { const hsApi = new HomeServerApi({ diff --git a/src/matrix/net/OidcApi.ts b/src/matrix/net/OidcApi.ts index 61b3be7d..e5c1838a 100644 --- a/src/matrix/net/OidcApi.ts +++ b/src/matrix/net/OidcApi.ts @@ -307,7 +307,7 @@ export class OidcApi { async revokeToken({ token, type, - }: { token: string, type: "refresh" | "access" }): Promise { + }: { token: string, type: "refresh_token" | "access_token" }): Promise { const revocationEndpoint = await this.revocationEndpoint(); if (!revocationEndpoint) { return;