Lucia 3.0 #1361
Replies: 10 comments 22 replies
-
Thanks, @pilcrowonpaper, for simplifying and streamlining the authentication process. Your efforts are much appreciated! |
Beta Was this translation helpful? Give feedback.
-
Congratulations and thanks for your work! NextAuth doesn't feel like the best tool and I hope Lucia can take this vacuum for authing. |
Beta Was this translation helpful? Give feedback.
-
Any plans to support access/refresh tokens? It's a total nightmare with nextauth |
Beta Was this translation helpful? Give feedback.
-
Does it work with Remix? |
Beta Was this translation helpful? Give feedback.
-
Thank you! Time to migrate. |
Beta Was this translation helpful? Give feedback.
-
Congratulations, and thanks for all the work you put into it! |
Beta Was this translation helpful? Give feedback.
-
thank you for making developer life easier. |
Beta Was this translation helpful? Give feedback.
-
First of all, thanks @pilcrowonpaper for your work! If someone can help me, I'm facing a problem with my implementation. I'm using Drizzle with "NodePostgresAdapter" and if I try to set the expires_at column as an integer ...
...I get following error when running the And If I try to set the
... I get the error:
Does anyone has an suggestion to what am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
How to avoid every request hitting the db? |
Beta Was this translation helpful? Give feedback.
-
I'm excited to announce Lucia 3.0!
We've been working on this for a few months now and it's finally out of beta! I was originally planning to release it this spring. But with Lucia starting to get more attention and usage, I have pushed the date earlier to avoid situations where new users are forced to migrate immediately. Don't worry - v2 will be maintained until the end of the year so you have more than enough time to migrate.
With this update, we have greatly simplified the library. All the annoying bits have been stripped out, and everything else we kept has been refined even more. It's just all around easier to understand and work with. One major component we removed are keys. You're now responsible for creating users and managing authentication. Keys were an awkward concept that confused beginners and made simple projects more complicated, but at the same time, didn't work for more complicated use cases. For a simple username and password implementation, you can just store the hashed password to the user table.
Another major change is that the OAuth integration has been replaced with a separate package, Arctic. With the removal of keys, we were able to convert it into an agnostic OAuth package. Arctic supports all providers that were available in the OAuth integration and more.
We have also removed framework specific middleware. This was a tough decision but we believe maintaining APIs for numerous frameworks across multiple major versions wasn't a viable option moving forward. We still maintain guides and examples for popular frameworks and you just have to copy-paste few lines of code when starting your project.
Finally, Lucia is now built with Oslo. This is a package provides a bunch of auth related utilities. We also recommended using it alongside Lucia as it includes APIs for hashing passwords, two-factor authorization, passkeys, and more.
We'd like to thank everyone who has contributed to Lucia, Oslo, and Arctic!
Ready to upgrade your project? Read the migration guide!
Have any questions? Join our Discord server!
Beta Was this translation helpful? Give feedback.
All reactions