Open
Description
While running an app with ExpressJS, we started generating tokens for instant-meilisearch from the backend.
However the API key is never recognized as valid. Can you please confirm tokens work the same for instantsearch?
E.g.,
app.get("/mysearch", function (req, res) {
const client = new MeiliSearch({ host: host, apiKey: key });
const expiresAt = new Date(new Date().getTime() + (24 * 60 * 60 * 1000)); // Today + 24hrs
const token = client.generateTenantToken(uuidv4(), {
apiKey: key,
expiresAt: expiresAt,
})
res.status(200).send({ token: token });
});
const search = instantsearch({
indexName: 'indexname',
searchClient: instantMeiliSearch(
host,
token,
{
finitePagination: true,
}
),
})