FriendsOfFlarum / oauth

Allow users to log in with GitHub, Twitter, Facebook, and more!
https://discuss.flarum.org/d/25182
MIT License
42 stars 14 forks source link

google and twitter login issue #34

Open Hari-Bonda opened 2 years ago

Hari-Bonda commented 2 years ago

Bug Report

Current Behavior when users signup using google and try to log in using Twitter at 2nd time or 3rd-time social login is not working.

Received HTTP status code [401] with message "{"errors":[{"code":32,"message":"Could not authenticate you."}]}" when getting temporary credentials.

Expected Behavior

login is getting failed

https://discuss.flarum.org/d/25182-friendsofflarum-oauth/171 https://discuss.flarum.org/d/28653-twitter-login-in-fofoauth-shows-401

Environment

clarkwinkelmann commented 2 years ago

It always works the first time for every user?

Hari-Bonda commented 2 years ago

image

after your reply, I have double-checked this again it is showing an error during the first signup too I've also tested the app key and secret using WordPress social login and it was working.

zerosonesfun commented 2 years ago

Thanks @Hari-Bonda for testing and reporting this! It was making me crazy yesterday. I couldn’t figure it out.

I had the same issue with Facebook in Safari. I switched to a brand new installation of Chrome on my Mac. First try, Facebook still didn’t work. I logged in with username and password instead and since I use the PWA extension it asked if I want to enable browser alerts. I said yes. I logged out. Tried the Facebook login again, and it worked. 🥸

DavideIadeluca commented 2 weeks ago

@Hari-Bonda Are you still facing the same issues right now on the latest version of fof/oauth ?