adrianhajdin / project_next_14_ai_prompt_sharing

Next.js recently became the official React framework as outlined in React docs. In this course, you'll learn the most important Next.js concepts and how they fit into the React ecosystem. Finally, you'll put your skills to the test by building a modern full-stack Next 14 application.
https://www.jsmastery.pro/ultimate-next-course
2.83k stars 416 forks source link

ACCESS DENIED ISSUE SOLVED #77

Open CarrioliDante opened 10 months ago

CarrioliDante commented 10 months ago

The problem is in api/auth/[...nextauth]/route.js

Change "callbacks" to "callback"

image

Pannu786 commented 10 months ago

are you able to connect with MongoDB? I can log-in but my user's log-in data is not getting saved. I have created the Clusteri but it is not working tho.

whynotkimhari commented 9 months ago

Thank you @CarrioliDante, It took me hours for this problem @@

vladdg-dev commented 7 months ago

This doesn't work. callback means nothing, and the user is not inserted in the db. The correct way of doing it is with callbacks, just as in the next-auth documentation, and the problem remains. Fixed #91