DEV Community

Discussion on: Authentication with credentials using Next-Auth and MongoDB - Part 2

Collapse
 
shakvilla profile image
Shakvilla

I have an issue after using this logic. I modified it a little, where a user creates a client but when i login with client details, and try to fetch data of logged in client, I'm unable to fetch data of the current client, i figured I'm not able to implement a logic to allow data fetching for current user, do you think you can help out with the logic, i followed your tuts and implemented authentication and its working, just fetching data and displaying for current logged in user

Collapse
 
dawnind profile image
Mainak Das

Can you atleast post some snippets or source code so that I can understand a bit better !