I've done multiple pages that require authentication, but in the 3rd step or so, I get 401 error.
The API as such works without any problems.
The flow is : Login - > on success -> I set the access token from the login response and expire time to 3600.
I have multiple pages (more like a multi step form), I set Bearer access token in all these pages. Page 1 and 2 do not have a problem, but the third one throws 401.
If I turn off authentication on both front end and back end, it goes through.
It seems very weird as there is nothing new in this page. Any help will be of great help 😉