webdevcody / next-drizzle-lucia-sqlite-template

MIT License
365 stars 95 forks source link

Added check to redirect if already signed-in #21

Open JVoorn85 opened 2 months ago

JVoorn85 commented 2 months ago

Moved the client side form to own component to add server side check to see if user is signed-in and redirect to dashboard.

Lucia can't check client side and as Header is Dynamic already making all pages dynamic change has little impact but if a nice to have feature.

Not implemented on other sign-in methods. Not sure it is the best solution but it works.