v0.14.0: What's new? #164
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
-
v0.14.0 is a minor update but it still introduces a small number of breaking changes. This change also completely decouples SvelteKit specific methods and Lucia core methods.
Changes
createSession()
andrenewSession()
returnsSession
Previously they returned an object with
session
,idlePeriodExpires
, andsetSessionCookie()
.locals.setSession()
andlocals.clearSession()
These are methods inside
locals
that sets the session cookie and clears them respectively.Removed
deleteAllCookies()
This was replaced by
locals.clearSession()
(above).Migration
Update
App.Locals
namespace inapp.d.ts
:I'm not sure where's the best place to announce both major and minor changes, but I'll continue using discussions until I find a better alternative
Beta Was this translation helpful? Give feedback.
All reactions