Mat
Mat
PPrisma
Created by Mat on 7/22/2024 in #help-and-questions
Not updating types
No description
6 replies
PPrisma
Created by Mat on 6/19/2024 in #help-and-questions
Invalid `prisma.account.findUnique()` invocation:
I am having issues with the google signin redirecting me to http://localhost:3000/api/auth/error?error=AdapterError Here's the error log:
[auth][error] AdapterError: Read more at https://errors.authjs.dev#adaptererror
[auth][cause]: PrismaClientValidationError:
Invalid `prisma.account.findUnique()` invocation:

{
where: {
provider_providerAccountId: {
~~~~~~~~~~~~~~~~~~~~~~~~~~
providerAccountId: "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
provider: "google"
},
? id?: Int,
? providerId_providerAccountId?: accountProviderIdProviderAccountIdCompoundUniqueInput,
? AND?: accountWhereInput | accountWhereInput[],
? OR?: accountWhereInput[],
? NOT?: accountWhereInput | accountWhereInput[],
? userId?: IntFilter | Int,
? providerType?: StringFilter | String,
? providerId?: StringFilter | String,
? providerAccountId?: StringFilter | String,
? refreshToken?: StringNullableFilter | String | Null,
? accessToken?: StringNullableFilter | String | Null,
? accessTokenExpires?: DateTimeNullableFilter | DateTime | Null,
? createdAt?: DateTimeFilter | DateTime,
? updatedAt?: DateTimeFilter | DateTime,
? user?: UserRelationFilter | userWhereInput
},
select: {
user: true
}
}

Unknown argument `provider_providerAccountId`. Did you mean `providerId_providerAccountId`? Available options are marked with ?.
[auth][error] AdapterError: Read more at https://errors.authjs.dev#adaptererror
[auth][cause]: PrismaClientValidationError:
Invalid `prisma.account.findUnique()` invocation:

{
where: {
provider_providerAccountId: {
~~~~~~~~~~~~~~~~~~~~~~~~~~
providerAccountId: "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
provider: "google"
},
? id?: Int,
? providerId_providerAccountId?: accountProviderIdProviderAccountIdCompoundUniqueInput,
? AND?: accountWhereInput | accountWhereInput[],
? OR?: accountWhereInput[],
? NOT?: accountWhereInput | accountWhereInput[],
? userId?: IntFilter | Int,
? providerType?: StringFilter | String,
? providerId?: StringFilter | String,
? providerAccountId?: StringFilter | String,
? refreshToken?: StringNullableFilter | String | Null,
? accessToken?: StringNullableFilter | String | Null,
? accessTokenExpires?: DateTimeNullableFilter | DateTime | Null,
? createdAt?: DateTimeFilter | DateTime,
? updatedAt?: DateTimeFilter | DateTime,
? user?: UserRelationFilter | userWhereInput
},
select: {
user: true
}
}

Unknown argument `provider_providerAccountId`. Did you mean `providerId_providerAccountId`? Available options are marked with ?.
6 replies