Hello! After upgrading to 3.8.0 we're facing a issue with gitlab oauth.
When I try to log in, I receive:
[31m[auth][error][0m OAuthAccountNotLinked: Another account already exists with the same e-mail address. Read more at https://errors.authjs.dev#oauthaccountnotlinked
[31m[auth][error][0m OAuthAccountNotLinked: Another account already exists with the same e-mail address. Read more at https://errors.authjs.dev#oauthaccountnotlinked
The thing is, I dont have any other linked email (its a sign in, not a sign up).
I got few data: (Screenshot 1)
-- Show oAuthselect * from "Account" a ;
-- Show oAuthselect * from "Account" a ;
(Screenshot 2)
select * from "User" u ;
select * from "User" u ;
(Screenshot 3)
select a."userId", u."name", u.email, "providerAccountId" from "Account" a join "User" u on a."userId" = u.id
select a."userId", u."name", u.email, "providerAccountId" from "Account" a join "User" u on a."userId" = u.id
Complete log error:
[31m[auth][error][0m OAuthAccountNotLinked: Another account already exists with the same e-mail address. Read more at https://errors.authjs.dev#oauthaccountnotlinked at nR (/app/apps/builder/.next/server/app/api/auth/[...nextauth]/route.js:692:3050) at async c4 (/app/apps/builder/.next/server/app/api/auth/[...nextauth]/route.js:692:42856) at async la (/app/apps/builder/.next/server/app/api/auth/[...nextauth]/route.js:692:54302) at async lr (/app/apps/builder/.next/server/app/api/auth/[...nextauth]/route.js:692:59016) at async tf.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:18835) at async tf.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:23727) at async doRender (/app/node_modules/next/dist/server/base-server.js:1513:42) at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/next/dist/server/base-server.js:1915:28) at async NextNodeServer.renderPageComponent (/app/node_modules/next/dist/server/base-server.js:2403:24) at async NextNodeServer.renderToResponseImpl (/app/node_modules/next/dist/server/base-server.js:2440:32)
[31m[auth][error][0m OAuthAccountNotLinked: Another account already exists with the same e-mail address. Read more at https://errors.authjs.dev#oauthaccountnotlinked at nR (/app/apps/builder/.next/server/app/api/auth/[...nextauth]/route.js:692:3050) at async c4 (/app/apps/builder/.next/server/app/api/auth/[...nextauth]/route.js:692:42856) at async la (/app/apps/builder/.next/server/app/api/auth/[...nextauth]/route.js:692:54302) at async lr (/app/apps/builder/.next/server/app/api/auth/[...nextauth]/route.js:692:59016) at async tf.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:18835) at async tf.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:23727) at async doRender (/app/node_modules/next/dist/server/base-server.js:1513:42) at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/next/dist/server/base-server.js:1915:28) at async NextNodeServer.renderPageComponent (/app/node_modules/next/dist/server/base-server.js:2403:24) at async NextNodeServer.renderToResponseImpl (/app/node_modules/next/dist/server/base-server.js:2440:32)