refresh auth token in strapi
This problem requires skills to debug a strapi backend with breakpoints. If you solve the problem, we will work together for the long term.
We are trying to refresh an auth token as described in https://strapi.io/blog/how-to-create-a-refresh-token-feature-in-your-strapi-application.
The frontend code sends the refresh request to the /api/refresh endpoint, but the backend sends a 403 response.
The relevant code that adds the refresh route to the backend is included in this file. https://gitlab.com/pwrk/bewerbermanagement/bms-backend/-/blob/main/src/extensions/users-permissions/strapi-server.js#L91
When this file is removed, the route disappears from the strapi backend.
The backend expects a refreshToken in a cookie. However, it does not send a cookie request in the response.
The problem must be debugged with breakpoints. Without breakpoints it becomes difficult.
If you are familiar with such things, this could be interesting. If not, just ignore it.
We offer a fixed price of 100$