Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with prisma adapter, I suddenly have an 0auth callback error, and I'm in a loop of callbacks. #11

Closed
Lean-98 opened this issue Sep 14, 2023 · 3 comments

Comments

@Lean-98
Copy link

Lean-98 commented Sep 14, 2023

Hi there! I'm facing some issue with the signin at 2:41:50 mark. As soon as I have inserted a prisma adapter, I suddenly have an 0auth callback error, and I'm in a loop of callbacks.

http://localhost:3000/api/auth/signin?error=Callback

@karshdev
Copy link

karshdev commented Sep 15, 2023

@Lean-98 check your google cloud have you written exactly the same routes for providers https://localhost:3000/api/auth/callback/google

@mozi47
Copy link

mozi47 commented Sep 16, 2023

check your google cloud and it will be same URI:
http://localhost:3000/api/auth/callback/google

in the .env make sure you have added NEXTAUTH_URL=http://localhost:3000,

clear the local storage and cookies.

@Lean-98
Copy link
Author

Lean-98 commented Sep 16, 2023

Thanks in the end I was able to solve it , the error was that I don't added the name to the database in the environment variable: DATABASE_URL="mongodb+srv://example:example@cluster0.8psrfxm.mongodb.net/blog?retryWrites=true&w=majority".

@Lean-98 Lean-98 closed this as completed Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants