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

Protected Route Callback Not Working #1

Open
windsornguyen opened this issue Oct 16, 2024 · 0 comments
Open

Protected Route Callback Not Working #1

windsornguyen opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@windsornguyen
Copy link
Member

When an unauthenticated user attempts to navigate to a tab in the Navbar, desired behavior is:

  1. Redirection to the Auth0 login.
  2. Upon successfully logging in, another redirection towards their originally desired tab's URL.

An effort was made in middleware.ts; however, there is a CORS issue that is blocking the preflight request that needs to be resolved.

http://localhost:3000 is on the CORS allowed origins list, which is what makes this bug puzzling.

@windsornguyen windsornguyen added the bug Something isn't working label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant