I use next-auth and I have a prisma adapter to PostgreSQL.
When I connected to keycloak(openid), it occoured errors.
prisma, postgresql, keycloak, nextauth
my all error logs below:
[next-auth][error][adapter_error_linkAccount]
https://next-auth.js.org/errors#adapter_error_linkaccount
Invalid `p.account.create()` invocation in
→ 19 linkAccount: (data) => p.account.create({
data: {
provider: 'keycloak',
type: 'oauth',
providerAccountId: '1368b98d-d517-4530-8706-b5ec54aaf18c',
access_token: 1gRDY-
expires_at: 1662888014,
refresh_expires_in: 1800,
~~~~~~~~~~~~~~~~~~
'not-before-policy': 0,
session_state: '1580ca55-c649-4cba-aa37-f2c335c8217a',
scope: 'openid profile email',
userId: 'cl7x4jxfk0004fkgasu1cfd6n'
}
})
Unknown arg `not-before-policy` in data.not-before-policy for type
→ 19 linkAccount: (data) => p.account.create({
data: {
provider: 'keycloak',
type: 'oauth',
providerAccountId: '1368b98d-d517-4530-8706-b5ec54aaf18c',
access_token:
name: 'LinkAccountError', code: undefined
}