question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: signInWithTwitter and skipNativeAuth=true does not return credentials (accesstoken and secret)

See original GitHub issue

Plugin(s): JS: “firebase”: “9.8.2” “@capacitor-firebase/authentication”: “0.3.2” iOS: @capacitor-firebase/authentication@0.3.1 Skärmavbild 2022-06-16 kl  10 38 13

Platform(s): iOS + web

Current behavior: Skärmavbild 2022-06-16 kl  10 31 00 IMG_D0D1690CCC8C-1

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). Skärmavbild 2022-06-16 kl  10 31 47 Skärmavbild 2022-06-16 kl  10 32 04

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:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
robingenzcommented, Jun 29, 2022

Sorry, i am currently very busy, i will look at it in 2 weeks.

1reaction
robingenzcommented, Jun 16, 2022

Hi @emilkaiser, thank you for this detailed issue! I will have a look at it as soon as possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: signInWithTwitter and skipNativeAuth=true does not ...
The result from await FirebaseAuthentication.signInWithTwitter() is missing the expected accessToken and secret when skipNativeAuth=true is set.
Read more >
Obtaining Access Tokens using 3-legged OAuth flow
Twitter allows you to obtain user access tokens through the 3-legged OAuth flow, which allows your application to obtain an access token and...
Read more >
Regenerating access tokens did not fix authentication
My app ID is 16011743. I've regenerated both Consumer API keys and accesstoken & secret, but still getting the below error
Read more >
iOS error with Firebase Auth Sign In using Twitter credentials
credential (token, secret); firebase.auth().signInWithCredential(credential); but it hasn't helped. – pejalo. May 19, 2017 at 0:08.
Read more >
OAuth 2.0 for Mobile & Desktop Apps - Google Developers
Access tokens periodically expire and become invalid credentials for a related API request. You can refresh an access token without prompting ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found