Typeorm-legacy. Login with Google Account: ER_DATA_TOO_LONG: Data too long for column 'id_token' at row #3955
Replies: 7 comments 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. ;) |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
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 👍 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions