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

Linkedin Auth Example fails on popup validation #316

Open
stevewinni-cc opened this issue Jan 29, 2018 · 1 comment
Open

Linkedin Auth Example fails on popup validation #316

stevewinni-cc opened this issue Jan 29, 2018 · 1 comment

Comments

@stevewinni-cc
Copy link

Linkedin Auth Example fails on popup validation with https://us-central1-[projectid].cloudfunctions.net/token error 500

How to reproduce these conditions

Sample name or URL where you found the bug
Vanilla install of LinkedIn example script https://acf-framework.firebaseapp.com/

Failing Function code used (including require/import commands at the top)
When a user with the same email address exists in the system popup returns an error on;

ERROR 500 for resource;
https://us-central1-acf-framework.cloudfunctions.net/token?code=[the-code]&state=b756059fb917884aa05eff90d9927f8a47fa4c07&callback=tokenReceived net::ERR_ABORTED
(anonymous) @ popup.html?

Steps to set up and reproduce

Followed these steps here;

https://github.com/firebase/functions-samples/tree/master/linkedin-auth

Sample data pasted or attached as JSON (not an image)
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "public"
}
}

Security rules used
{
"rules": {
"linkedInAccessToken": {
"$uid": {
".read": "auth.uid === $uid",
".write": "auth.uid === $uid"
}
}
}
}

Debug output

5:50:17.767 PM warning token Error: The email address is already in use by another account. at FirebaseAuthError.Error (native) at FirebaseAuthError.FirebaseError [as constructor] (/user_code/node_modules/firebase-admin/lib/utils/error.js:25:28) at new FirebaseAuthError (/user_code/node_modules/firebase-admin/lib/utils/error.js:90:23) at Function.FirebaseAuthError.fromServerError (/user_code/node_modules/firebase-admin/lib/utils/error.js:114:16) at /user_code/node_modules/firebase-admin/lib/auth/auth-api-request.js:350:45 at process._tickDomainCallback (internal/process/next_tick.js:135:7) more_vert
5:50:17.765 PM warning token Unhandled rejection

Screenshots

Expected behavior

Should inform the user that email already in use and with what mechanism

Actual behavior

Popup. Blank screen with "Processing...." error in console.

@coluccini
Copy link

Same thing here ☝️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants