[firebase_auth/invalid-credential] The supplied auth credential is malformed or has expired. [ Invalid access_token, error code 43 ] #10773
Unanswered
solid-danylokhvan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make a login using facebook. Facebook gives me a token and my user profile. The token I use to create credentials for the
signInWithCredential()
method is, according to the firebase_auth package, outdated or not properly formed. The firebase_auth package gives me an error:[firebase_auth/invalid-credential] The supplied auth credential is malformed or has expired. [ Invalid access_token, error code 43 ]
My code:
Package of facebook I use: flutter_login_facebook: 1.8.0
Package of firebase_auth I use: firebase_auth: 4.3.0
Flutter - SDK 3.0.0
Dart - SDK 2.17.0 (Flutter)
Emulator:
Pixel 6 Pro API 33 (android-arm64 emulator)
Flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, 3.0.0, on macOS 13.2.1 22D68 darwin-arm, locale ru)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.77.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
• No issues found!
I went absolutely by the algorithm that facebook documentation gave me about connecting the package to the app, also the user when logging into facebook comes back to me while invoke the
FacebookLogin().login()
method. SHA-1 keys I entered in facebook for developers (debug and production). Tried another facebook package (flutter_facebook_auth) and had exactly the same problem. Also rechecked if I entered the secret key and project ID correctly. Everything matches.Beta Was this translation helpful? Give feedback.
All reactions