Questions about React
Lately, I've been very lost with some things, I need opinions from more experienced developers about some things.
- Been using TailwindCSS for a good time, liked it so much, but i have some old projects with ChakraUI and want to know, do i migrate it. to tailwind and is chakra dead/dying?
- Is it recommended to auth users and admins (in this case, two big app with shared db) via two different tables? if so, is there any lib that can do that seamlessly? (thats my biggest pain);
7 Replies
- Been using TailwindCSS for a good time, liked it so much, but i have some old projects with ChakraUI and want to know, do i migrate it. to tailwind and is chakra dead/dying?
Migrating an old projects is always difficult to say, if you think it's worth to migrate, go for it. As for the chakra, he isnt dead neither is dying.
- Is it recommended to auth users and admins (in this case, two big app with shared db) via two different tables? if so, is there any lib that can do that seamlessly? (thats my biggest pain);
Each case is its own case, you can experiment and see if fits the case.
The problem with the auth is, sometimes the user get randomly kicked out, and me founding out I don't know how to make a robust and production ready auth by myself.
You can always use something like next auth or lucia for that
and at worse, clerk/auth0/firebase/supabase can do the trick as well
but what about the multi table part?
I've seen both next-auth and lucia only support one table (for the user), and since the db is the same between the two applications , I cannot link the f.g. users and customers table the same way
lucia does split the user from the auth part
like this
but that is the db token setup for lucia, its options for that
next auth does support both db and jwt authentication