Is the option api_token implemented ?
Author: bnbcCreated Mar 4, 2023Updated Apr 3, 2025
Hello, i have read this issue : https://github.com/nuxt-modules/strapi/issues/254
And i want to know if an option to set Strapi api token is now available ? i don't see it in the documentation.
Meanwhile i will use useStrapiClient, like that (not tested) :
const client = useStrapiClient()
await client('/articles', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
}
})
Source: nuxt-modules/strapi