-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Typeorm-legacy. Login with Google Account: ER_DATA_TOO_LONG: Data too long for column 'id_token' at row #3825
Comments
The options here:
Personally, I think the quickest fix for you would be to try out the I will discuss further with @ndom91 if we should take any steps on our side here. |
Yeah. I experienced other problems and had to resolve other things with typeorm with some workarounds. Didn't get that mysql also was able to be dealing with, when it comes to Prisma. The general solution to the id_token seems to jsut change the type in other adapters.. easily done. ;) |
Hey @hejamartin I'd be curious, are you requesting additional scopes from Google? Or are you using the default ones? Just trying to figure out how your id_token from Google got so large haha |
Hi @ndom91 But no - only those scopes that are bare minimum - email and profile. Thx for the v4 beta work you are doing ya all! |
Hmm okay strange. I'll take a closer look at this then, if the Google jwt /id_token is always this large then yeah we definitely need to bump up that field size / type 👍 |
I am still having this issue on "@next-auth/prisma-adapter": "^0.5.2-next.19" and "next-auth": "^4.0.0-beta.6". I tried this
by adding @db.Text but it's still showing same error. |
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Issue regarding the typeorm-legacy default entity model
This is the error I got.
The entity for this database field "id_token" is a varchar, which is capped on 255 characters.
This happens when:
When trying to sign in with my Google Account, the id_token is 1054 characters.
So the type of that field should be "text" or equivalent. I am not great at all when it comes to databases.
The text was updated successfully, but these errors were encountered: