bug(authentication): Bad access token
when signing in via Facebook under iOS
#834
Labels
Bad access token
when signing in via Facebook under iOS
#834
Discussed in #827
Originally posted by tbence94 February 21, 2025
The issue
Facebook FAQ here states the following:
As far as I can tell the current
@capacitor-firebase/authentication
package does not support this Limited Login on iOS.That's why we got errors when tried to use this:
The code above resulted in errors like these:
Always code 190 and some message about the token being "bad"/"malformed" etc...
Solution
I forked the repo and played in local until I managed to modify the
FacebookAuthProviderHandler.swift
code to use the limited login option and log in on my iOS device using the idToken. This also means that accessToken will no longer work!These sources proved useful for the implementation:
Here is the implementation / diff:
main...YoloEdu:capacitor-firebase:main
Question
Should this change be merged into the original package?
I am no iOS developer and I am not really familiar with firebase either, so I am not really sure about this.
I feel this should be an issue for a lot of people who use this package for iOS facebook login.
But I did not see any opened issues or PRs regarding this problem.
Could someone take a look at my solution and decide if it's worth merging?
The text was updated successfully, but these errors were encountered: