Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Cannot sign in with Oauth 1.0a using email #147

Open
juanjovn opened this issue Oct 31, 2022 · 5 comments
Open

Cannot sign in with Oauth 1.0a using email #147

juanjovn opened this issue Oct 31, 2022 · 5 comments

Comments

@juanjovn
Copy link

juanjovn commented Oct 31, 2022

Hi,

I'm having an issue trying to log in with oauth 1.0a. It works if the users types the username but otherwise if the user try to log in using the full email address he is redirected to a blank page. If you request de desktop website tapping on top button (aA) a website is shown with an error:
Simulator Screen Shot - iPhone 13 Mini - 2022-10-31 at 08 27 35

@mironal
Copy link
Owner

mironal commented Oct 31, 2022

Hi! Thanks for trying TwitterAPIKit.

I have successfully logged in using email and password with OAuth 1.0a in my sample app (https://github.com/mironal/TwitterAPIKit-iOS-sample).

If you can describe the situation and code in which the error occurred, I will be able to help you further.

@juanjovn
Copy link
Author

Hi, I was having the same issue in your example project with my own API Secrets, so I'm going to double check some things and write back to you if I find the workaround.

Thanks for your quick reply! :)

@juanjovn
Copy link
Author

juanjovn commented Oct 31, 2022

I'm still struggling with it. I'm using your demo project only changing my consumerKey and consumerSecret (I've set the labels as hidden for security) and as you can see in the video attached with email doesn't work 😕
So if it's working for you I assume that it can be a problem with my app's configuration in the Twitter Developer Portal, but I have no clue what could be wrong.

Simulator.Screen.Recording.-.iPhone.14.Pro.-.2022-10-31.at.12.01.25.mov

@mironal
Copy link
Owner

mironal commented Oct 31, 2022

Thanks for the detailed video, it's very helpful.
Since you seem to be using 2FA, I'll try it later with my account enabled as well.

It's nighttime in Japan right now, so my reply will be tomorrow. 😴

@mironal
Copy link
Owner

mironal commented Nov 3, 2022

@juanjovn Hi! I have successfully authenticated using email with 2FA enabled on my account.

On the other hand, your video shows a successful login using the account name, so I don't see any problem with the Consumer Key or oauthCallback settings in the sample app.

video-output-A13CE187-48C3-46EE-A645-4E536F318100.MP4

It is very unlikely, but if you turn on Request email from users in the Developer Portal, it might change something (I don't think this setting affects login by email...). (I don't think this setting affects email logins, though.

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants