Replies: 2 comments
-
I'm also experiencing a similar issue while using Next.js. Since top-level await is not supported, the MongoDB adapter needs to be modified to accept a |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm currently using this: In mongodb.ts
Then in auth.ts
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone! I would like to use Lucia along with MongoDB. Based on the MongoDB and Next.js template we should use a
clientPromise
for reusing connections. However, the Lucia MongoDB adapter expects the user and session collections as arguments. Since we cannot use top-level awaits how can the adapter use the clientPromise variable to get the collection? Thanks in advance 😀Beta Was this translation helpful? Give feedback.
All reactions