Directus data provider token
Hi guys
I'm using refine CRA but I'm not able to access data from directus. I'm getting "You don't have permission to access this." where do I put my directus token on the config?
![icon](https://cdn.discordapp.com/emojis/1035476532430381066.png)
8 Replies
other-emeraldโข2y ago
Hello @geekyland , please see the example here https://github.com/tspvivek/refine-directus/tree/master/example
GitHub
refine-directus/example at master ยท tspvivek/refine-directus
Directus dataprovider package for refine. Contribute to tspvivek/refine-directus development by creating an account on GitHub.
flat-fuchsiaโข2y ago
Hi! after i compile the example im getting this error log
![No description](https://cdn.answeroverflow.com/1078710315451174932/image.png)
other-emeraldโข2y ago
Hello @geekyland , did you login with given credentials?
Hey @tspvivek ๐,
Have you any idea? ๐
other-emeraldโข2y ago
Hey @geekyland, I just built the example and logged in with demo@demo.com/123456 credentials, and I can see Posts as seen in the screenshot.
![No description](https://cdn.answeroverflow.com/1079705492328304711/Screenshot_2023-02-27_at_13.03.32.png)
flat-fuchsiaโข2y ago
Hi! @batuhanw idk what i was the error the last time, I am able to see the products post rn
other-emeraldโข2y ago
@geekyland Last week, I have fixed a redirect issue in authprovider example. That might be your issue. Glad to know it works.
other-emeraldโข2y ago
Thanks @tspvivek, by the way we are releasing v4 soon, let's stay in touch