T3 Stack - Connect to Mongodb

I'm quite new to using the T3 stack, I have an application that needs to connect to MongoDB (I'm using NextAuth and the Credentials Provider).
Can anyone tell me how I can connect to MongoDB? My Login request times out after 10000ms and I think it is because my db is not connected.
I'm not using prisma on this project because it is an existing database and I didn't have the time to configure all that yet.

Thanks for helping ❤️
Was this page helpful?