Skip to content

Changing Auth Provider #64

Answered by emilwalter
emilwalter asked this question in Q&A
Feb 14, 2022 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Turns out I am a dum dum and didn't read this and forgot to update my database scheme to accept longer token.ids, the base project only works with Github because they have short enough token.ids to work without adding @db.Text to the prisma scheme.

NOTE When using the MySQL connector for Prisma, the [Prisma String type](https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string) gets mapped to varchar(191) which may not be long enough to store fields such as id_token in the Account model. This can be avoided by explicitly using the Text type with @db.Text.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@emilwalter
Comment options

@waptik
Comment options

@Rocketchat23
Comment options

@Willy-Bueno
Comment options

@waptik
Comment options

Answer selected by emilwalter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants