-
Hi everyone! I'm building an application where authentication is done by OpenID (oidc-client-js). Tokens are issued by the Authentication center (it's not my app) I know about manual visits Looks like this approach works. But it does not look pretty...
So, my question is: what way do you recommend to refresh headers while navigating by inertia-links? Thanx! =) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@zablik In a typical Inertia/Laravel app there's some magic behind the scenes as the In your case, things seem different. Here are some existing issues/answers, you could take a look at.
Also note that there are plans to remove Axios completely. The Axios approach could not be too persistent. |
Beta Was this translation helpful? Give feedback.
@zablik In a typical Inertia/Laravel app there's some magic behind the scenes as the
XSRF-TOKEN
cookie is automatically added by Axios to every request and refreshed by Laravel when returning a 419. You just need redirect back and show a message to the user, like described here. ForGET
requests there are typically no tokens needed at all.In your case, things seem different. Here are some existing issues/answers, you could take a look at.
headers
available instart
event)Also no…