-
Notifications
You must be signed in to change notification settings - Fork 226
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
Error: The supplied auth credential is malformed, has expired or is not currently supported. #33
Comments
How did it work when you cloned the repo and tried the example here? |
I'm suddenly running into this as well after having the sign in working fine. I can remove the auth from the apple account and signing in again restores it I get credentials back from Apple, but I get the same error when trying to sign in with firebase. |
@mikehardy It's not working with a specific version of react-native-firebase i.e. 5.6.0. Apple sign-in is working with "6.2.0". But I ran into another problem wherein re-login isn't working. I am getting the following error:
|
It's working fine with v5.6.0. The PR that implemented it was mine. I just tested it in my app today. |
Try making sure your app package name and firebase package names matches... Check your bundle id in the GoogleService-Info.plist file inside on your IOS project Could also try generating a new GoogleService-Info.plist file to be safe |
There is an upstream issue (you can search the firebase-ios-sdk github repo) indicating that because the nonce must be unique each time, you have to make fresh auth requests each time if you are re-authenticating or upgrading from anonymous. I think they updated the documentation just recently firebase/firebase-ios-sdk#4434 (comment) You might get more information from the raw Xcode or console error logs |
Thank you everyone for the response. I have upgraded it to version "6.2.0" and it's working. |
I got the latest version of everything and this error is happening. Any ideas? We are getting authentication with a token from Apple, but the issue appears to be on the Firebase side. The auth().signInWithCredential function is throwing the error.
|
@henokweldemicael sounds like a firebase issue, not apple. If apple is working this module is likely fine Perhaps it's bundle IDs or similar |
hey were you able to solve the issue? @Heno
hey were you able to solve the issue i am also getting the same error. |
Like @imanodaysoffdotcom suggested I indeed had a mismatch in my Firebase app name (also in GoogleService-Info.plist) and Apple bundle id. After matching those it worked :) |
I am implementing sign in with Apple. I can successfully see the Apple login page. I key in the correct credentials. It should be able to sign in/sign up to the firebase based on the returned value from Apple. However I am getting this error What I have done: In Firebase
In developer.apple.com
My React Native source code
|
Your bundle ID should match and be the same everywhere - in xcode, app.json, apple developer console (services and keys enabled for that bundle ID), and in your firebase config. Once you modify your bundle ID on Firebase, you'll get a new GoogleService-Info.plist file. Replace your old .plist file in your local project folder with it. If you're still getting an error, go into your ios subfolder and check the cached copy of the .plist file there, you may have to change that as well manually if it hasn't updated. |
Xcode Version: 11.3.1
React Native Version: 0.60.3
@invertase/react-native-apple-authentication version: 0.1.1
React Native Firebase: 5.6.0
I am passing the credentials in the firebase auth:
firebaseUser = await firebase.auth().signInWithCredential(credential);
Getting the following error:
Let me know what am I missing here?
The text was updated successfully, but these errors were encountered: