-
Notifications
You must be signed in to change notification settings - Fork 889
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
[React] Login with signInWithRedirect does not work with option 4 #8598
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @sumitsahoo, thank you for reaching out to us and apologies for the delayed response. Upon checking, we would be needing additional information to check if you've properly implemented the Option 4: Using the self host helper code step, could you share the link of the following:
We would like to check if the contents in those files are the same as your Please file a ticket via our support channel and provide the needed information to help us further investigate the issue. You can also include this Github issue link for reference. We are currently tracking this internally in b/375588284. |
@jbalidiong Sure I will share the details in the support ticket. I had created one from GCP but it got closed. |
@jbalidiong I forgot to mention that
The documentation needs to be updated since the file is no longer maintained at app url. |
Operating System
macOS 15.0.1
Environment (if applicable)
Chrome 130, Edge 130, Firefox,
Firebase SDK Version
10.14.1 & 11.0.1
Firebase SDK Product(s)
Auth
Project Tooling
React app with webpack
Detailed Problem Description
As per the Firebase documentation on self hosted helper files for signInWithRedirect, we have added the files to proper directories i.e.
/__/auth/
and/__/firebase/
as seen below. We have added to thepublic
directory as a build process is involved for theReact
app.For the deployed version to work and fix files being downloaded without being processed we have to update
nginx
config.But it never works, the redirect does happen but the result inside
getRedirectResult
is alwaysnull
To test it locally we used
mkcert
to enable HTTPS but still, the result was the same. Steps to enable HTTPS are below:package.json
To make the redirect work, we had to rename
handler
tohandler.html
andiframe
toiframe.html
. However, there are no clear instructions on how to test this login locally from Firebase, which I find disappointing.With these also the result is the same. This is such a big issue and I want to know why there is no traction on this from Firebase. This is a dealbreaker for the Enterprise use case. Related issue: #8329
Steps and code to reproduce issue
Below is the code for initiating the
signInWithRedirect
And in App.js we are observing the redirect response
The result is always null.
The text was updated successfully, but these errors were encountered: