next-directus-auth-ts icon indicating copy to clipboard operation
next-directus-auth-ts copied to clipboard

API call in dashboard

Open DutchCloud4Work opened this issue 3 months ago • 3 comments

Hi,

This is not an issue, but how can I make an API call using the current token in for example the dashboard page? I made an directus.js helper file (as shown on their site) but I can`t get the token / auth to work.

For example, I made an collection "global" with read right for one user (the one I log in with). At the moment I`m getting the error not authorized..

Sorry for this noob question :-)

DutchCloud4Work avatar Apr 02 '24 08:04 DutchCloud4Work