An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
When calling sync or load and it failed with 401, by using requestfail listener, i am then calling refresh token api to get a new access token.
This is working but i would need a way to retry the sync or load request seemlessly.
Right now the chart shows the error, and if the user refreshes the page it will work well.
Ask:
How can i, on failure, check if its 401 and then call refresh token and then retry the same request again?
Forum post
Hey,
When calling sync or load and it failed with 401, by using requestfail listener, i am then calling refresh token api to get a new access token.
This is working but i would need a way to retry the sync or load request seemlessly. Right now the chart shows the error, and if the user refreshes the page it will work well.
Ask: How can i, on failure, check if its 401 and then call refresh token and then retry the same request again?