Optional
algorithm?: `HS${256 | 384 | 512}`Encryption algorithm used to sign the JWT. Supported values by Meilisearch are HS256, HS384, HS512. (HS[number] means HMAC using SHA-[number])
API key used to sign the token.
The uid of the api key used as issuer of the token.
Optional
expiresAt?: number | DateUNIX timestamp or Date object at which the token expires.
Optional
force?: booleanBy default if a non-safe environment is detected, an error is thrown.
Setting this to true
skips environment detection. This is intended for
server-side environments where detection fails or usage in a browser is
intentional (Use at your own risk).
Optional
searchRules?: TokenSearchRulesSearch rules that are applied to every search.
Options object for tenant token generation.