-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
IOS Only : - Invalid OAuth access token - Cannot parse access token #419
Comments
I checked that code and i used code which in example of this repo Future _login() async {
} here additional line is AuthCredential credential = FacebookAuthProvider.credential(result.accessToken!.tokenString); Which throws error - [firebase_auth/invalid-credential] {"code":190,"message":"Bad signature"} |
The example code is not valid for firebase auth. You need to pass to firebase the raw nonce. |
What version are you using?
flutter_facebook_auth: ^6.0.3.
What OS and version are you using to local deploy your application?
macOs 14.6.1
What platforms are you seeing the problem on?
iOS
pubspec.yaml
Describe the Bug
When using facebook login method i'm facing issue related to token
this is my code
Future signInWithFacebook() async {
try {
final LoginResult loginResult = await FacebookAuth.instance.login(permissions: ['public_profile']);
}
Expected Behavior
Expected behaviour is token should be valid and it should be login in using facebook
To Reproduce
To Reproduce
Use given or even latest package
Do setup in IOS
Then when we use facebook login method then first it will create login result then after creating AuthCredential
pass that cred to signInWithCredential method
and facing this issue in IOS only
Relevant log output
flutter doctor -v
Info.plist (iOS)
Podfile (iOS)
AndroidManifest.xml
MainActivity.java
MainActivity.kt
index.html
Info.plist (macOS)
The text was updated successfully, but these errors were encountered: