webdevcody / next-drizzle-lucia-sqlite-template

MIT License
383 stars 96 forks source link

adding useAuth hook for client side checking #16

Closed islamBelabbes closed 4 months ago

islamBelabbes commented 4 months ago

hey, I have implemented useAuth hook with context API for client-side checking

although I'm not sure if we should stay on fetching the user from the layout (ssr) or fetch it in the auth context with react query or native fetch