Its because I am querying the database directly instead of doing an api call in [...nextauth].ts
[...nextauth].ts is being exported and used as a client component not a server component.
This error didn't start happening until I added bcrypt to my users.ts file
So I need to setup the Users endpoint first and then update this file to use the api instead.
[x] Setup GET /api/users
[x] Setup GET /api/users/
[x] Setup PUT /api/users/ (only updating user details, no password updates for now)
Module not found error.![fun](https://user-images.githubusercontent.com/76879054/221102585-b46cdcba-fb71-4d9d-a027-828540eeed51.gif)
Its because I am querying the database directly instead of doing an api call in [...nextauth].ts [...nextauth].ts is being exported and used as a client component not a server component. This error didn't start happening until I added bcrypt to my users.ts file
So I need to setup the Users endpoint first and then update this file to use the api instead.