Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to retrieve the email address? #22

Open
dev-bre opened this issue Dec 1, 2022 · 1 comment
Open

How to retrieve the email address? #22

dev-bre opened this issue Dec 1, 2022 · 1 comment
Labels
question Further information is requested

Comments

@dev-bre
Copy link

dev-bre commented Dec 1, 2022

I am tryuing to receive the email address from the profile in the passportTwitterV2Strategy but I can't find the includeEmailAddress param anywhere.

Can you please help?

@jnv
Copy link
Collaborator

jnv commented Dec 1, 2022

Hi @dev-bre, unfortunately it's not possible to retrieve email address from v2 API at this time. Per this SO answer it's being worked upon, but I doubt it will be a priority with the new Twitter's management.

So if getting the user's email during the auth is critical for you, I recommend sticking with OAuth 1.0a and passport-twitter strategy.

@jnv jnv added the question Further information is requested label Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants