Can't log in on Twitter.Why no email returned?

Hello everyone.

I would like to know.

What I want to do.
I want to use the Auth0 feature to do social login with my Twitter account.

having trouble with this.
The login fails.
⇒I checked the user of Auth0.
⇒I want to use the Auth0 function to log in socially.

I have a problem with the “Setup Guide” on the Twitter setup screen.

User’s email address is missing from retrieved user profile
Twitter connections do not retrieve the user’s email address by default. However, you can add a rule to request the email address using the Access Token returned from Twitter providing you supply a privacy policy and terms & conditions.

Auth0 provides a rule template to get email addresses from Twitter. To use it, create a new rule with the Get Email Address from Twitter template under the Enrich Profile section.

If you are using Auth0 developer keys, this functionality will not work; you will need to use your Twitter API Key and API Secret Key.

You must also explicitly request permission to retrieve user email addresses for your Twitter app:

Log in to Twitter Developer Project and App Management.
Choose your project, and then your app settings.
Click Edit next to Authentication settings, then toggle the switch to enable Request email address from users.
Enter the appropriate links in the Terms of service and Privacy policy fields, then click Save.

I don’t know what to do when I see this.
Do I need to modify the source code or do I need to do something on the Auth0 setup screen?

★use Platforms

Hello there @yosuke welcome to the community!

This bit refers to adding a Rule within your Auth0 dashboard. You can do so by navigating to Auth Pipeline → Rules - When you go to create a new rule you will want to choose the “Get email address from Twitter” rule template in the Enrich Profile section.

The subsequent steps refer to actions that need to be taken within your Twitter Developer account.

Hope this helps!

Thank you for your response.

Sorry, please tell me one more thing.
I have tried to set it up as you suggested.
I did a Try Connection on Twitter.
The following message was displayed.

I would like to know what settings I need to check.

Sorry for the busy time orz

No problem @yosuke happy to help!

Did you follow the instructions below from the rule?

The other thing you might want to check is that you have added your TWITTER_CONSUMER_KEY and TWITTER_CONSUMER_SECRET_KEY to the configuration object located just beneath the rules in your dashboard at Auth Pipeline → Rules:

Hope this helps!

Thank you very much.
Thanks to you I have obtained an email address.

If I have any more questions, I will ask them.
Thank you in advance.

1 Like

Wonderful! Good to know this is working for you now :smile:

Happy to help!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.