Skip to content

Commit f615f79

Browse files
authored
Fix tenant_token_guide_generate_sdk_1 code sample (#1314)
1 parent 3a588a0 commit f615f79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,10 @@ tenant_token_guide_generate_sdk_1: |-
618618
}
619619
}
620620
const apiKey = 'B5KdX2MY2jV6EXfUs6scSfmC...'
621+
const apiKeyUid = '85c3c2f9-bdd6-41f1-abd8-11fcf80e0f76'
621622
const expiresAt = new Date('2025-12-20') // optional
622623
623-
const token = client.generateTenantToken(searchRules, {
624+
const token = client.generateTenantToken(apiKeyUid, searchRules, {
624625
apiKey: apiKey,
625626
expiresAt: expiresAt,
626627
})

0 commit comments

Comments
 (0)