baumblatt / capacitor-firebase-auth

Capacitor Firebase Authentication Plugin
MIT License
261 stars 129 forks source link

There is no session in Twitter sign in. #36

Closed ryandegruyter closed 5 years ago

ryandegruyter commented 5 years ago

Hi, facebook and google works great, but I can't get Twitter to work.

To Native -> CapacitorFirebaseAuth signIn 107089977 2019-10-26 17:59:19.159694+0200 App[44511:651065] [TwitterKit] Error obtaining user auth token. There is no session in Twitter sign in. ERROR MESSAGE: {"message":"There is no session in Twitter sign in.","errorMessage":""}

baumblatt commented 5 years ago

Hello Ryan,

Not a clue, for awhile, can you share more information?

iOS, Android or both? Is there some exception in native logs?

Best regards, Bernardo Baumblatt.

ryandegruyter commented 5 years ago

Hi

I believe this was related to the callback URI. Facebook and Google was working perfectly but I couldn't get your plugin to work for Twitter. So I added some conditional logic to use the capacitor-twitter plugin. Also here I could not get it to work. In the meantime I added 2 different callback URI's while configuring the plugin:

twitterkit-{API_KEY}:// twittersdk://

Because I could not get the capacitor-twitter plugin to work correctly, I wanted to try yours again with the new callback uri's. It seems to work perfectly now and I don't receive the error anymore.

Best regards and thank you for this plugin.

vichanse commented 4 years ago

I was unable to signin using twitter until i add those two lines mentioned by @ryandegruyter

twitterkit-{API_KEY}:// twittersdk:// as callbacks URL in my twitter app config. I think we should add that in the doc

Thank you for the plugin 👍