timjacksonm / Toss-Up

A would you rather question app. Questions generated using AI technology
https://toss-up.vercel.app
2 stars 1 forks source link

Fix NextAuth.ts error #40

Closed timjacksonm closed 1 year ago

timjacksonm commented 1 year ago

Module not found error. fun

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.

timjacksonm commented 1 year ago

Ref https://github.com/timjacksonm/Toss-Up/issues/5