-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Strategy: "apiToken" #86
Comments
Thanks for the report! Can you expand on what you mean by "The apiToken strategy encounters issues when modifying specific data"? The reproduction steps are not so clear to me. How are you sending/modifying the data? What are you expecting to receive back vs what you actually receiving? Is their any custom function that is handling it server side? Any other possible relevant info? |
Sure, As previously mentioned, we have a collectionType: api::table.table, containing fields like no, descriptions, status, etc.. Everything functions correctly when modifying the 'status' field under the 'jwt' strategy. However, issues arise when using the 'apiToken' strategy. |
What "issues" arise when using apiToken? "Issues arise" is a fairly broad term and hard to attempt to reproduce. |
Our attached handler is not being called Example: socket.on("table:update", (table) => {
}); The event |
Thank you for the clarification, I will see if I can reproduce this issue |
Additionally, we have |
I found the cause of this issue, as i was running into the same problem. I created a pull request with my fix Basically this was an issue that only effected api tokens with an unlimited duration. The solution was properly querying these tokens. |
Thanks Cody! This should be fixed via #87 in the latest relase (v2.0.6) |
Thanks!! |
What issue are you experiencing?
The apiToken strategy encounters issues when modifying specific data, and the cause of this problem is currently unknown. However, a workaround is available by switching to the JWT strategy, which allows the messages for changes to function as expected. Your assistance in resolving this matter would be greatly appreciated. Thank you.
Steps To Reproduce
CMS Strapi
Plugin config
Token Configuration
FrontEnd NextJS
Networking
Payload
Responce
Comunications
What version of the plugin are you using?
2.0.5
What strapi version are you using?
4.17.1
The text was updated successfully, but these errors were encountered: