Recipe for Single Page Apps, redirecting to the login page when unauthenticated #4257
Unanswered
binarykitchen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ciao - I'm coming from Axios and not happy with it. Too much configuration overhead regarding redirect logic.
It's about how to configure a Single Page App properly. Understand that it's the default to follow redirect automatically. But for Single Page Apps it's a no-go, as don't want to load the index.html all over again, but just switch to the login page, e.g .with react-router.
I wonder if undici has an example based on Single Page Apps, on how to redirect back to the login page for unauthenticated users?
Beta Was this translation helpful? Give feedback.
All reactions