Next Auth Google not working ('client_id is required')

Hi, just started out.
I changed all the DISCORD_CLIENT_ID and DISCORD_CLIENT_SECRET to GOOGLE_CLIENT_ID and GOOGLE_CLIENT SECRENT, in auth.ts, env.mjs, and .env

(please let me know if you need to see the files)

I get this error in local :
[next-auth][error][SIGNIN_OAUTH_ERROR] 
https://next-auth.js.org/errors#signin_oauth_error client_id is required {
  error: {
    message: 'client_id is required',
    stack: 'TypeError: client_id is required\n' +
      '    at new BaseClient (C:\\Users\\vishw.LAPTOP-1V3S8DHR.000\\dev\\projects\\web\\progressapp\\progressapp\\node_modules\\openid-client\\lib\\client.js:178:13)\n' +
      '    at new Client (C:\\Users\\vishw.LAPTOP-1V3S8DHR.000\\dev\\projects\\web\\progressapp\\progressapp\\node_modules\\openid-client\\lib\\client.js:1789:7)\n' +
      '    at openidClient (C:\\Users\\vishw.LAPTOP-1V3S8DHR.000\\dev\\projects\\web\\progressapp\\progressapp\\node_modules\\next-auth\\core\\lib\\oauth\\client.js:28:18)\n' +
      '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
      '    at async getAuthorizationUrl (C:\\Users\\vishw.LAPTOP-1
    name: 'TypeError'
  },
  providerId: 'google',
  message: 'client_id is required'
}
Was this page helpful?