Need assistance connecting Nextjs app with Chrome extension
Answered
Giant panda posted this in #help-forum
Giant pandaOP
Hi, i want to implement an extension that sends data from a website to a database trough prisma. I also want to get some data from the website, let's say the users Name and Last name. I'm using next-auth, how can I connect the two so that I can get data from the extension and display data from the app on the extension? (See if the user is logged in, get his session name, etc.)?
Thanks!
Thanks!
Answered by European Turtle-Dove
You can get the session in the extension by sending a request to
your-website/api/auth/session2 Replies
European Turtle-Dove
You can get the session in the extension by sending a request to
your-website/api/auth/sessionAnswer
Giant pandaOP
thanks!