Twitter login on Vercel fails (creates User but not Account) #2838
Unanswered
borispoehland
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I managed to get next-auth with twitter working on my local environment. Then I deployed to vercel (with all required environment variables set beforehand) and my Google and Facebook Login still work.
However, my Twitter authentication doesn't work anymore. Here's some more info:
https://....vercel.app/api/auth/callback/twitter
setUser
is created in the database, but not anAccount
.Account
fields than my development version, e.g.accessToken
instead ofaccess_token
. However, I can not check this because I don't see any errors. This is because my Vercel Serverless function window does not log any Twitter errors. Facebook errors are logged thoughCallback
Has any of you faced a similar issue before? Thanks for helping!
Beta Was this translation helpful? Give feedback.
All reactions