Defender
BABetter Auth
•Created by Defender on 3/27/2025 in #help
How to know if the signed in user is a new user? (For both Password and OAuth)
Hi, I am building my SaaS using better-auth and Nextjs. I want to create a doc in the MongoDB for the new users. However, I am not able to figure out how to do this.
Please help me.
my setup:
MongoDB (no mongoose)
no ORM
Better Auth
NextJs
2 replies