MongoDB nextauth
Hi! I have two web apps that share this database. Both of them have authentification using nextauth. The problem i have is that when i connect on one application i get dissconected from the other because they share the same session, account, users collections. My question is what can i do to solve this?
In next.js 13, How to use code in url param to exchange tokens with custom providers in next-auth?
So I have created a custom provider in next auth like this :