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

Issue with redirection from /oauth/callback #1126

Closed
MaxDNG opened this issue Mar 19, 2024 · 2 comments
Closed

Issue with redirection from /oauth/callback #1126

MaxDNG opened this issue Mar 19, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@MaxDNG
Copy link

MaxDNG commented Mar 19, 2024

Hi all, I am trying to integrate the package in my application and I have a problem with the final redirection.

I have followed the steps for hosted login integration. Everything works fine until the redirection. Although I am eventually redirected to http://localhost:3000/oauth/callback then I see the frontegg loader (the 3 bars) which hang forever.

What is supposed to happen then? How can I redirect the user from /oauth/callback to another path?

What I've tried so far:

  • setting a redirect_uri query param
  • trying to catch the route in react-router but it seems frontegg provider catches it first
@MaxDNG MaxDNG added the bug Something isn't working label Mar 19, 2024
@MaxDNG MaxDNG changed the title [BUG] Issue with redirection from /oauth/callback Mar 19, 2024
@yuvalotem1
Copy link
Contributor

Hey, @MaxDNG, do you have a reproduction for that issue?
Ensure you have hostedLoginBox={true} in your FronteggProvider options.
Also enable hosted login in frontegg portal - https://portal.frontegg.com/development/authentication/hosted

@MaxDNG
Copy link
Author

MaxDNG commented Mar 19, 2024

Hi @yuvalotem1,
Yes both options were set up.
While setting up a reproduction repo, I figured out the issue.
I had set the basename property in react-router and it seems to conflict.

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

4 participants