diff --git a/src/base-apis.js b/src/base-apis.js index 52fbcd937..f1930d061 100644 --- a/src/base-apis.js +++ b/src/base-apis.js @@ -1891,7 +1891,7 @@ MatrixBaseApis.prototype.identityHashedLookup = async function( }; // Get hash information first before trying to do a lookup - const hashes = await this.getIdentityHashDetails(); + const hashes = await this.getIdentityHashDetails(identityAccessToken); if (!hashes || !hashes['lookup_pepper'] || !hashes['algorithms']) { throw new Error("Unsupported identity server: bad response"); }