NortherncoderN
Convex Community2y ago
27 replies
Northerncoder

cookies with convex

I am trying to implement Lucia v3 with Convex by following the guide on https://stack.convex.dev/convex-with-lucia

The end of the guide mentions localstorage is used to store the session. If I changed it to a secure httponly cookie, does this create a problem for convex? Is it that convex websockets don't see the session cookie? So if thats the case we are left with a less secure localstorage option?
And finally, I wonder how is clerk auth implemented, since clerk stores JWTs in a secure cookie.
Thanks for any help you can provide understanding auth flow.
Stack
Learn how to build a full stack app with authentication without any third-party auth providers, using Convex and the Lucia library.
Custom Authentication (with Lucia)
Was this page helpful?