Hello! I am currently testing prisma with nextauth...
# orm-help
d
Hello! I am currently testing prisma with nextauth. Currently I have the following problem which already have several: Argument providerAccountId: Got invalid value ‘XXXXXXXXX’ on prisma.findUniqueAccount. Provided String, expected Int. However, in schema.prism I have defined providerAccountId as Int. In the database it is also stored as Int due to the migration. Nevertheless, I get this error. Does anyone know how I can fix this?
m
Pass the id like this:
Number(providerAccountId)
🙌 1
d
Ah I see, thanks. Now I have a different Problem. When I run the command, the structure is created in the database:
npx prisma migrate
. So the connection to the database works. But if I try to login via GitHub, I get the following error in my console:
Authentication failed against database server