Hi, I am trying to add Google OAuth, but for some reason I am getting a api/auth/error 404
If I am trying to use the code as given in the next-auth (which follows the pages/ [...nextauth].ts format), it does not work but at the same time I wonder that as in the current version it has the credentials based login, it should work. So I tried adding google as a provider in auth.config.ts and auth.ts but none of them worked. Here is what I had
create a new file inside the directory app/api/auth/[...nextauth]/ called route.ts and paste the following line of code: export { GET, POST } from '@/auth';
In your auth.ts add this in export: handlers: { GET, POST },
Hi, I am trying to add Google OAuth, but for some reason I am getting a api/auth/error 404 If I am trying to use the code as given in the next-auth (which follows the pages/ [...nextauth].ts format), it does not work but at the same time I wonder that as in the current version it has the credentials based login, it should work. So I tried adding google as a provider in auth.config.ts and auth.ts but none of them worked. Here is what I had