Self-signed certificate in certificate chain error

Hi everyone,

I am going through Mosh’s course on NextJS and got to the OATH (lesson 3) and I think I have it set up correctly but am getting an error when I select the “Sign In” button:

[next-auth][error][SIGNIN_OAUTH_ERROR]
Errors | NextAuth.js self-signed certificate in certificate chain {
error: {
message: ‘self-signed certificate in certificate chain’,
stack: ‘Error: self-signed certificate in certificate chain\n’ +
’ at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)\n’ +
’ at TLSSocket.emit (node:events:517:28)\n’ +
’ at TLSSocket._finishInit (node:_tls_wrap:1070:8)\n’ +
’ at ssl.onhandshakedone (node:_tls_wrap:856:12)\n’ +
’ at TLSWrap.callbackTrampoline (node:internal/async_hooks:128:17)',
name: ‘Error’

Any ideas?

Thanks,
Steve