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

Use id_str for reading in Twitter user ID #412

Merged
merged 1 commit into from Jul 9, 2020

Conversation

jharding
Copy link
Contributor

@jharding jharding commented Jul 9, 2020

Hey there!

I ran into a problem authenticating with a newer account on Twitter. The ID of the account is 948493988897554433, but that number can't be represented in JavaScript (evaluates to 948493988897554400). As a workaround, we can read in the string value, id_str. See https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/user-object

The additional change came from running yarn run lint --fix.

@vercel
Copy link

vercel bot commented Jul 9, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/iaincollins/next-auth-docs/6x5vlrvr6
✅ Preview: https://next-auth-docs-git-fork-jharding-bug-use-twitter-id-str.iaincollins.vercel.app

@vercel vercel bot temporarily deployed to Preview July 9, 2020 08:47 Inactive
@iaincollins
Copy link
Member

<3 Thank you for spotting this, for the fix and link to the appropriate documentation! We'll get this out in the next release.

@iaincollins iaincollins merged commit 5db05e1 into nextauthjs:main Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants