thebergamo / react-native-fbsdk-next

MIT License
692 stars 166 forks source link

accessToken returned on iOS is invalid #546

Closed domenicoprestia closed 2 weeks ago

domenicoprestia commented 2 months ago

🐛 Bug Report

Right now i'm retrieving the accessToken from the logInWithPermissions() function, on Android ti works normally, but on iOS looks like the token that it returns is invalid

To Reproduce

Try to login with iOS accessToken

Expected Behavior

The token should be valid and should let me authenticate normally

Environment

System: OS: macOS 14.2.1 CPU: (8) arm64 Apple M2 Memory: 104.22 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 21.7.2 path: /opt/homebrew/bin/node Yarn: version: 1.22.19 path: /opt/homebrew/bin/yarn npm: version: 10.7.0 path: /opt/homebrew/bin/npm Watchman: version: 2024.04.08.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.15.2 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms:

gauthampait commented 2 months ago

Facing the same problem with

    "@react-native-firebase/app": "^20.4.0",
    "@react-native-firebase/auth": "^20.4.0",
    "react-native-fbsdk-next": "^13.0.0",

Error message:

"[auth/invalid-credential] The supplied auth credential is malformed or has expired."

BaluNaik commented 2 months ago

Similar issue.

Domniea commented 2 months ago

I also have this same issue and can’t seem to figure out why.

Puneet58 commented 2 months ago

Similar Issue

antoine-waag commented 2 months ago

same issue since I have update the package to the latest version

"@react-native-firebase/app": "^20.4.0",
"@react-native-firebase/auth": "^20.4.0",
"react-native-fbsdk-next": "^13.0.0",

[Error: [auth/invalid-credential] The supplied auth credential is malformed or has expired.]

shlomiro commented 2 months ago

same here

i-ked-ii commented 2 months ago

You can try my solution #551

zaryan98 commented 2 months ago

same issue here,

[Error: [auth/invalid-credential] The supplied auth credential is malformed or has expired.]

i-ked-ii commented 2 months ago

same issue here,

[Error: [auth/invalid-credential] The supplied auth credential is malformed or has expired.]

You can try my solution https://github.com/thebergamo/react-native-fbsdk-next/issues/551#issuecomment-2345570693

zaryan98 commented 2 months ago

same issue here, [Error: [auth/invalid-credential] The supplied auth credential is malformed or has expired.]

You can try my solution #551 (comment)

Tried the solution you mentioned , but it stills giving me error on iOS, but works fine on android. The access token is invalid or malified.

i-ked-ii commented 2 months ago

same issue here, [Error: [auth/invalid-credential] The supplied auth credential is malformed or has expired.]

You can try my solution #551 (comment)

Tried the solution you mentioned , but it stills giving me error on iOS, but works fine on android. The access token is invalid or malified.

Can I see your code. I think you miss some function.

hungvu193 commented 1 month ago

While searching for the solution of this issue, I saw this helpful comment: https://github.com/facebook/facebook-ios-sdk/issues/2365#issuecomment-2078743846

It will require updating BE but it makes it work. Hopefully, it can help everyone else here.

stale[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.