Next.js Discord

Discord Forum

NEXT AUTH MONGO ADAPTER ISSUE

Unanswered
Rough harvester ant posted this in #help-forum
Open in Discord
Rough harvester antOP
PLZ HELP ME I AM STUCK LONG TIME so what happening is i am using the next auth for my google and Cred providers but when i am using adapter to store it doesnt login without adapter it works fine but with adapter it shows all the consoles as fine but it dosent make status authenticated

7 Replies

@gin this is not chatgpt
Rough harvester antOP
yes followed Basically what is happening is i have some providers namely credentials nad google now i have login page nad register page logic nad all of that is working perfectly fine like when it will login with either provider it will make status autehnticated nad when it will make status authenticated it will change headers and add profile page but if i add the adapter line it wont make it authenticated and display unsual behaviour like in google provider it will show a random err and in cred it will not continue and i will login again and agian stuck but it will not make status authenticated in any case

just know that entire authentication logic is working fine without the adapter part like if i comment it out so the problem lies here
Eulophid wasp
could it be possible that u have a typo?
in env variables is your Mongo URI actually set to MONGO_URI or MONGODB_URI