JWT Token Support
-
Hi,
I am using JWT plugin to authorize the user.
https://www.ads-software.com/plugins/jwt-authentication-for-wp-rest-api/Simply this plugin generate a JWT token for the user after he logged in with his username and password and then in every api request that need user authorization I send the JWT token and the plugin decode the token and make current user equal to this user.
I want to cache custom apis that’s related to user eg: “/users/my-invoices”.
I followed the tutorial in your reply to this question https://www.ads-software.com/support/topic/woocommerce-3-2-6-api-cache/
it’s working great but I have two problems
1- How to flush api cache for a specific user for example after he made an order.
2- When User logged in with a new token.
3- Is there a hook that allow me to change the request_headers to be the user id instead of the token before save data to redis.
- The topic ‘JWT Token Support’ is closed to new replies.