Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 Unauthorized calls on unprotected routes #1

Closed
NINE78 opened this issue Feb 8, 2024 · 1 comment
Closed

401 Unauthorized calls on unprotected routes #1

NINE78 opened this issue Feb 8, 2024 · 1 comment

Comments

@NINE78
Copy link

NINE78 commented Feb 8, 2024

First of all, thanks for this excellent example on JWT authentication!

I've one question though: the AppProvider calls loadDataFromServer which targets the protected /api/auth route. Since everything is wrapped inside the AppProvider, unprotected routes like home or /login will result in 401 errors on the console (as the /api/auth route won't be accessible). Any tips on how to tackle this?

thanks!!

@designly1
Copy link
Owner

designly1 commented Feb 8, 2024 via email

@NINE78 NINE78 closed this as completed Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants