#Convex & Lucia might be depricated on v3

7 messages · Page 1 of 1 (latest)

alpine edge
#

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

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

#

now I see that a few people mentioned this already

#

not sure how to overcome this

#

you guys must be annoyed with this auth stuff lol, sorry for stirring this pot again, feel free to close the issue

crisp vapor
#

Thanks for continuing to bring this to our attention. Auth is a very broad and deep subject. Hence entire companies that just do this 😅

@kindred ferry has more context for when he's back online.

But my understanding is that Lucia has made some very significant changes to the APIs. Our old demo probably should be marked as deprecated. There are active internal explorations on getting some library version of auth working (may or may not be lucia based), that is a bit more self contained.

alpine edge
#

I will try to just extend the Lucia class and add a method that will work with convex. will involve some http mutations, which should hopefully not cause any issues. gonna update this thread or #general

#

all validateSession does is either remove invalid sessions or update the expiration which can be done asynchronously