bug: signInWithTwitter and skipNativeAuth=true does not return credentials (accesstoken and secret)
See original GitHub issuePlugin(s): JS: “firebase”: “9.8.2” “@capacitor-firebase/authentication”: “0.3.2” iOS: @capacitor-firebase/authentication@0.3.1
Platform(s): iOS + web
Current behavior:
The result from await FirebaseAuthentication.signInWithTwitter()
is missing the expected accessToken
and secret
when skipNativeAuth=true
is set.
Expected behavior:
await FirebaseAuthentication.signInWithTwitter()
should return credentials to be used to sign in on web layer with Firebase JS SDK.
Steps to reproduce: Use example project found here https://github.com/robingenz/capacitor-firebase-authentication-demo and steps here https://github.com/robingenz/capacitor-firebase/blob/main/packages/authentication/docs/firebase-js-sdk.md and here https://github.com/robingenz/capacitor-firebase/issues/99.
Related code:
I did this: https://github.com/robingenz/capacitor-firebase/issues/99#issuecomment-1156250009 and also made sure that skipNativeAuth=true
was set and propagated to native layer (by default the example app did not correctly set the ios config, had to change manually).
Notice:
I also had to add skipNativeAuth=true
to ios/App/App/capacitor.config.json
since it not got copied there when building.
Capacitor doctor:
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 3.5.1
@capacitor/core: 3.5.1
@capacitor/android: 3.5.1
@capacitor/ios: 3.5.1
Installed Dependencies:
@capacitor/cli: 3.5.1
@capacitor/android: 3.5.1
@capacitor/ios: 3.5.1
@capacitor/core: 3.5.1
[success] iOS looking great! 👌
[error] app/src/main/assets/public directory is missing in android
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Sorry, i am currently very busy, i will look at it in 2 weeks.
Hi @emilkaiser, thank you for this detailed issue! I will have a look at it as soon as possible.