6

If you go to https://wfolly.firebaseapp.com/, you'll be able to log in with Facebook by clicking "Iniciar sesion". You'll then see your name next to the log out text "Cerrar sesion - YOUR FACEBOOK NAME".

However, while auth works on wfolly.firebase.com above, it does not work on https://debatenomasafp.org/, my own domain connected through Firebase Hosting to Firebase's own wfolly.fire(...) URL.

"Does not work" means you won't see your name next to the log out text "Cerrar sesión", and generally won't be able to interact with the website as if you were logged in.

What is wrong? Why are they not behaving identically?

I know the deployment version is the same in both sites because the current deployment reflects a late change in both URLs, not just Firebase's.

Authentication also works fine on localhost:8080 pre-deployment.

It may or may not be relevant that I am using Re-Base (github.com/tylermcginnis/re-base) for authentication requests.

Norbert
  • 435
  • 5
  • 14
  • 1
    Have you listed your own domain in the Facebook app settings? – Brett DeWoody Feb 08 '17 at 17:34
  • I hadn't. I tried adding https://wfolly.firebaseapp.com/ and https://debatenomasafp.org/ now but got this error message: "App domains must match the domain of the Secure Canvas URL, Mobile Site URL, Unity Binary URL, Site URL or Secure Page Tab URL. Please correct these domains: debatenomasafp.org, wfolly.firebaseapp.com". Problem persists with or without https://(...)/ . – Norbert Feb 08 '17 at 18:21
  • What does "does not work" mean? Where's the offending code and the error? See [how to ask](http://stackoverflow.com/help/how-to-ask) and [creating an mcve](http://stackoverflow.com/help/mcve). – Kato Feb 09 '17 at 13:43
  • "Does not work" means you won't see your name next to the log out text "Cerrar sesión", and generally won't be able to interact with the website as if you were logged in. – Norbert Feb 09 '17 at 14:16
  • Not being able to see your name could be a UI problem. You need to narrow the scope here to a specific problem. See the links I shared. If auth is failiing, there is almost certainly an error message being generated that you should log and share here. – Kato Feb 09 '17 at 14:19

2 Answers2

13

Kato, in the comments above, gave me the answer through Slack.

I simply had to authorize the new domain in Firebase's console's "OAuth redirect domains" setting, under "Authentication".

Norbert
  • 435
  • 5
  • 14
4

Just adding to the answer above. Thought an image would be helpful ;)

Authorized Domains

TK421
  • 801
  • 5
  • 16
  • 24