Session token expire in Polaris Axios call #978
Replies: 3 comments
-
I am trying to build a custom AJAX Call to the controllers, and it's not recognized. |
Beta Was this translation helpful? Give feedback.
-
Hello, I was having same issue in my windows machine, I solved it by time sync in my computer I hope it helps you. |
Beta Was this translation helpful? Give feedback.
-
If you are using axios as well, you want to use the interceptor functionality. This way you can set up a function to run before any ajax call that gets the session token to make sure you always get a valid one before making any request. Here's the interceptor code I've made for this package
|
Beta Was this translation helpful? Give feedback.
-
Did anyone develop an app using this package and Polaris?
Currently, I am facing an issue with session token (session token expire) in the axios call.
Beta Was this translation helpful? Give feedback.
All reactions