Authentication with tanstack-router
I am implementing access and refresh-token based authentication on a project and on the signup and login route, I make a check in the before-load function, if user exists, if it does then he is redirected to the last page he was on from the signup or login page (implementing typical auth behaviour). But doing so is giving an error and the page doesn't load, if I comment out the code for before-load then everything works. . before-load: . The complete code can be found at : https://github.com/AyushShende25/blog-client
GitHub
GitHub - AyushShende25/blog-client
Contribute to AyushShende25/blog-client development by creating an account on GitHub.
0 Replies