-
Say i want to get blog items including the user first_name + user avatar who created the blog item? I don't want to open up all the user data to public. There are many ways to look at it.. I currently created a user with a token with access to the firstname and avatar source only. So in nuxt i do a Is it possible with nuxt-directus to use an access token next to/instead of the current auth flow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The module has several composables, an option to implement the feature wouldn't be too bad. All composables that use data fetched from the directus server use the |
Beta Was this translation helpful? Give feedback.
The module has several composables, an option to implement the feature wouldn't be too bad.
All composables that use data fetched from the directus server use the
useDirectus
composable (which also uses$fetch
). You can assign parameters likeaccess_token
to theuseDirectus
composable. However, assign anaccess_token
for e.g. theuseDirectusItems
composable is currently not implemented. Would be a good feature though. 🤟