Has anyone here got an error when working on the Issue tracker and trying to sign in after setting up google provider?
[
next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error
Invalid `prisma.account.findUnique()` invocation:
Operation 'findUnique' for model 'Account' does not match any query. PrismaClientUnknownRequestError:
Invalid `prisma.account.findUnique()` invocation:
Operation 'findUnique' for model 'Account' does not match any query.
at wn.handleRequestError (D:\Coding Folder D drive\Gasol\Coding Folder\Coding Projects\codingWithMoshFolder\NextjsIssueTracker\issue-tracker\node_modules\@prisma\client\runtime\library.js:123:6902)
at wn.handleAndLogRequestError (D:\Coding Folder D drive\Gasol\Coding Folder\Coding Projects\codingWithMoshFolder\NextjsIssueTracker\issue-tracker\node_modules\@prisma\client\runtime\library.js:123:6119)
at wn.request (D:\Coding Folder D drive\Gasol\Coding Folder\Coding Projects\codingWithMoshFolder\NextjsIssueTracker\issue-tracker\node_modules\@prisma\client\runtime\library.js:123:5839)
at async l (D:\Coding Folder D drive\Gasol\Coding Folder\Coding Projects\codingWithMoshFolder\NextjsIssueTracker\issue-tracker\node_modules\@prisma\client\runtime\library.js:128:9763)
at async getUserByAccount (webpack-internal:///(rsc)/./node_modules/@next-auth/prisma-adapter/dist/index.js:211:29) {
name: 'GetUserByAccountError',
code: undefined
}
GET /api/auth/callback/google?state=DUE6KDBFSH7MMXB5vr2cmYqdrVVuRtKPDb1LQWnmADk&code=4%2F0AcvDMrCjOZ9XjjPYVlf0OLc9cy6cTXhh_kDCPlbWBtfDFP8ddSVkI-GIQUqO_TOeP98vBg&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+openid&authuser=0&prompt=none 302 in 233ms
GET /api/auth/error?error=Callback 302 in 6ms
GET /api/auth/signin?error=Callback 200 in 6ms
I tried to change the prisma models to the exact ones in the video that Mosh uses, but still not working. I even cleared my cookies like he did, but still having issues.