We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93cd960 commit 748c30bCopy full SHA for 748c30b
tests/env/esm/src/index.js
@@ -4,5 +4,9 @@ import { generateTenantToken } from '../../../../dist/bundles/token.mjs'
4
5
const client = new MeiliSearch({ host:'http://localhost:7700', apiKey: 'masterKey' })
6
const defaultClient = new DefaultMeiliSearch.MeiliSearch({ host:'http://localhost:7700', apiKey: 'masterKey' })
7
-const token = generateTenantToken('e489fe16-3381-431b-bee3-00430192915d', [], { apiKey: 'masterKey' })
8
-console.log({ client, token, defaultClient })
+generateTenantToken({ apiKey: 'masterKey', apiKeyUid:'e489fe16-3381-431b-bee3-00430192915d' })
+ .then((token) => console.log({ client, token, defaultClient }))
9
+ .catch((error) => {
10
+ console.error(error)
11
+ process.exitCode = 1
12
+ })
0 commit comments