tame-yellow
tame-yellowโ€ข3y ago

Directus data provider token

Hi guys icon 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?
8 Replies
rising-crimson
rising-crimsonโ€ข3y 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.
tame-yellow
tame-yellowOPโ€ข3y ago
Hi! after i compile the example im getting this error log
No description
rising-crimson
rising-crimsonโ€ข3y ago
Hello @geekyland , did you login with given credentials?
Omer
Omerโ€ข3y ago
Hey @tspvivek ๐Ÿ‘‹, Have you any idea? ๐Ÿ™‚
rising-crimson
rising-crimsonโ€ข3y 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
tame-yellow
tame-yellowOPโ€ข3y ago
Hi! @batuhanw idk what i was the error the last time, I am able to see the products post rn
conscious-sapphire
conscious-sapphireโ€ข3y ago
@geekyland Last week, I have fixed a redirect issue in authprovider example. That might be your issue. Glad to know it works.
rising-crimson
rising-crimsonโ€ข3y ago
Thanks @tspvivek, by the way we are releasing v4 soon, let's stay in touch

Did you find this page helpful?