v0.10.0: What's new? #122
pilcrowonpaper
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! v0.10.0 is finally here, big thanks for waiting!
This update completely overhauls Lucia, transitioning to session tokens from JWTs and cookies from cookies/bearer token combo. I've improved the APIs as well and introduced a sleuth of lower-level APIs. Finally, I've rebuilt the documentation from scratch. It should be easier to understand Lucia, and the site is better designed as well, if I say so myself.
If you need to migrate your app, refer to v0.10.0: Migration guide.
Some major changes
id
column should beUUID
or similar. You can still generate your own user id if you need to.createUser
andauthenticateUser
no longer creates a new session. This also means you can create a new session just with the user's id.validateRequest()
.secret
.camelCase
: For easier de-structuring.camelCase
:some_column
is converted tosomeColumn
when accessing user data using Lucia.identification_token
toprovider_id
: Provider ID conveys the meaning betterWhat's next?
I've removed the function that handles silent refresh since sessions last 8 hours. This should be fine for most cases, but it might be worth adding a wrapper around
fetch()
that refreshes the session and call the request again when an endpoint returns a 401. I thinking about making the error messages more specific.As for the docs, I'll be adding more content as it only provides the bare minimum right now.
Finally, I'll be listening to community feedback to improve the library
As always, thank you for the continued support!!
Beta Was this translation helpful? Give feedback.
All reactions