Northerncoder
CCConvex Community
•Created by Northerncoder on 6/30/2024 in #support-community
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.
Thanks for any help you can provide understanding auth flow.
28 replies
CCConvex Community
•Created by Northerncoder on 6/30/2024 in #support-community
useMutation vs server action & fetch mutation
I am building a signup page for my app (using lucia auth) and I am wondering what is the right pattern for submitting forms.
My concern is if I need to rate limit the signup against bots, I wouldnt be able to do this using useMutation.
Does it make sense to instead make a server action and in there use fetchMutation to submit a user signup?
2 replies