fix(search): correct generateTenantToken signature (uid first, rules second)
This commit is contained in:
parent
95c8665a55
commit
2b9ea81e60
1 changed files with 1 additions and 4 deletions
|
|
@ -110,10 +110,7 @@ export async function generateTenantToken(userId, organizationIds, expiresIn = 3
|
|||
|
||||
// Ensure a string is returned across client versions
|
||||
const parentUid = await ensureTenantKeyUid();
|
||||
const token = await client.generateTenantToken(searchRules, {
|
||||
apiKey: parentUid,
|
||||
expiresAt
|
||||
});
|
||||
const token = await client.generateTenantToken(parentUid, searchRules, { expiresAt });
|
||||
|
||||
return typeof token === 'string' ? token : String(token);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue