shadow_ayaS
Convex Community2y ago
7 replies
shadow_aya

Convex & Lucia might be depricated on v3

Unfortunate news, just I was about to celebrate that Convex & Lucia work well together and I ran into a roadblock.

Lucia's API got changed in version 3, the issue is getting a session
- convex-lucia-auth-demo convex/withAuth.ts:117
- new lucia API github discussion

the new Lucia class has no getSession function, which allowed you to only read the session
notice the comment above in the v2 demo repo:
// The cast is OK because we will only expose the existing session


with seemingly only Lucia#validateSession left, I think it's no longer possible to use in queries at all. can someone else have a look and confirm? if you wish, I can quickly share my v3 repo where I found this out (but there isn't really much more to it)
Thanks :FallenQiqi:
Was this page helpful?