question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auth stopped working after updating to latest dependencies

See original GitHub issue

This used to work fine but stopped working after updating dependencies. Currently I’m investigating what causes the problem, but here’s what I get: video here http://recordit.co/vMDm8Wj3Y8 image

The error (signInWithCredential failed: First argument "credential" must be a valid credential.) happens for both AccountChooser and OneTap CredentialHelpers.

My set up is pretty simple:

export const firebaseUiAuthConfig: FirebaseUIAuthConfig = {
  providers: [
    // googleCustomConfig,
    AuthProvider.Google,
    AuthProvider.Facebook,
    AuthProvider.Password,
    AuthProvider.Phone
  ],
  method: AuthMethods.Popup,
  credentialHelper: CredentialHelper.AccountChooser
};
....
FirebaseUIModule.forRoot(firebaseUiAuthConfig),

and dependencies:

"dependencies": {
    ...
    "@angular/common": "^5.2.6",
    "@angular/compiler": "^5.2.6",
    "@angular/core": "^5.2.6",
    ...
    "angularfire2": "^5.0.0-rc.6",
    "firebase": "^4.10.1",
    "firebaseui": "^2.6.1",
    "firebaseui-angular": "^2.6.1",
    ...
  },

Does anyone have something similar?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
stevebrowndotcocommented, Feb 28, 2018

I can confirm that the downgrading to the following versions fix the issue:

        "firebase": "^4.10.1",
        "firebaseui": "2.5.1",
        "firebaseui-angular": "2.5.0",
        "angularfire2": "^5.0.0-rc.6",

@RaphaelJenni It looks like the bug occurs after firebaseui 2.5.1.

@matiishyn note that I can use firebase 4.10.1.

0reactions
RaphaelJennicommented, Mar 20, 2018

Installed the newest versions. No errors for me anymore. Can you verify if the problem is solved?

Dependencies of the sample project:

"dependencies": {
    "@angular/common": "^5.2.9",
    "@angular/compiler": "^5.2.9",
    "@angular/core": "^5.2.9",
    "@angular/forms": "^5.2.9",
    "@angular/http": "^5.2.9",
    "@angular/platform-browser": "^5.2.9",
    "@angular/platform-browser-dynamic": "^5.2.9",
    "@angular/router": "^5.2.9",
    "@types/firebase": "^3.2.1",
    "angularfire2": "^5.0.0-rc.5-next",
    "core-js": "^2.5.3",
    "firebase": "^4.11.0",
    "firebaseui": "^2.6.3",
    "firebaseui-angular": "^2.6.1",
    "promise-polyfill": "6.0.2",
    "rxjs": "^5.5.7",
    "zone.js": "^0.8.19"
  },
  "devDependencies": {
    "@angular/cli": "^1.7.3",
    "@angular/compiler-cli": "^5.2.9",
    "@types/jasmine": "2.5.38",
    "@types/node": "^6.0.102",
    "codelyzer": "~2.0.0",
    "jasmine-core": "~2.5.2",
    "jasmine-spec-reporter": "~3.2.0",
    "karma": "~1.4.1",
    "karma-chrome-launcher": "~2.0.0",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "^0.2.0",
    "karma-jasmine": "^1.1.1",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.1.0",
    "ts-node": "~2.0.0",
    "tslint": "~4.5.0",
    "typescript": "2.6.2"
  }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter dependencies problems after upgrade - Stack Overflow
The best way would be just remove the version from the dependencies which are causing error. And then run pub get it will...
Read more >
JwtService stopped working after upgrading dependencies #63
I've installed new project with NestJS 6 and If I put JwtModule in separate AuthModule and after I import in other module I...
Read more >
OWA or ECP stops working after you install a security update
OWA/ECP stops working after a security update is manually installed on Exchange server without elevated permissions.
Read more >
Troubleshooting common Maven issues | IntelliJ IDEA ...
You can try to restart IntelliJ IDEA and update Maven repositories. Update Maven repositories. In the Settings/Preferences ...
Read more >
Problem: Unable to resolve dependencies of NuGet packages
When you upgrade the site by installing Telerik. ... Unable to resolve dependencies. ... Authentication 10.0.6421' is not compatible with 'Telerik.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found