Closed Khartir closed 4 months ago
@Khartir Thanks for this PR. It's a good point. I have added some comments in the file changes
@Khartir Thanks for this PR. It's a good point. I have added some comments in the file changes
I don't see the comments. Did you forget to submit them?
Should I add an example for this to the firewall troubleshooting documentation?
Definitely, it is a great idea.
@Khartir I have merged the PR. Later I will add some tests for this feature. I will publish a new package soon.
@Khartir I have merged the PR. Later I will add some tests for this feature. I will publish a new package soon.
Hi, sorry to bother you, but do you have an estimate, when you will publish the new package?
@Khartir I did it few days ago. I just forgot to create the release on Github. It should be on NPM.
Closes #84
After some testing I realized that adding the
onRequest
hooks is not enough, because they are not used by the authentication extension. Instead the correct way is to use the client config itself to provide afetch
implementation, that adds the required headers (see https://docs.directus.io/guides/sdk/getting-started.html#polyfilling)I still added the option to configure the rest client, but I am unsure if this is still necessary. (At least I don't need it any longer :wink: ).
Should I add an example for this to the firewall troubleshooting documentation?