Zitadel integration error
Unanswered
Tonkinese posted this in #help-forum
TonkineseOP
Hey guys, trying to get Zitadel working with next, but get this error when I try to sign in (after the redirect):
Any idea what the problem is?
[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error server_error {
error: {
message: 'server_error',
stack: 'Error: server_error\n' +
' at oAuthCallback (/Users/me/myapp/web/node_modules/.pnpm/next-auth@4.23.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth/core/lib/oauth/callback.js:39:19)\n' +
' at Object.callback (/Users/me/myapp/web/node_modules/.pnpm/next-auth@4.23.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth/core/routes/callback.js:52:39)\n' +
' at AuthHandler (/Users/me/myapp/web/node_modules/.pnpm/next-auth@4.23.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth/core/index.js:208:41)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async NextAuthApiHandler (/Users/me/myapp/web/node_modules/.pnpm/next-auth@4.23.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth/next/index.js:22:19)\n' +
' at async NextAuth._args$ (/Users/me/myapp/web/node_modules/.pnpm/next-auth@4.23.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth/next/index.js:108:14)',
name: 'Error'
},
error_description: 'unable to retrieve client by id',
providerId: 'zitadel',
message: 'server_error'
}Any idea what the problem is?
1 Reply
TonkineseOP
and the second error:
[next-auth][error][OAUTH_CALLBACK_ERROR]
https://next-auth.js.org/errors#oauth_callback_error server_error {
message: 'server_error',
stack: 'Error: server_error\n' +
' at oAuthCallback (/Users/me/myapp/web/node_modules/.pnpm/next-auth@4.23.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth/core/lib/oauth/callback.js:39:19)\n' +
' at Object.callback (/Users/me/myapp/web/node_modules/.pnpm/next-auth@4.23.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth/core/routes/callback.js:52:39)\n' +
' at AuthHandler (/Users/me/myapp/web/node_modules/.pnpm/next-auth@4.23.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth/core/index.js:208:41)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async NextAuthApiHandler (/Users/me/myapp/web/node_modules/.pnpm/next-auth@4.23.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth/next/index.js:22:19)\n' +
' at async NextAuth._args$ (/Users/me/myapp/web/node_modules/.pnpm/next-auth@4.23.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth/next/index.js:108:14)',
name: 'Error'
}