-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove session #5946
Remove session #5946
Conversation
🦋 Changeset detectedLatest commit: e45159b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
I've closed two issues as moot now that
A quick issue search on the word "session" turned up a lot of issues that mention that word, but only those two seemed to be specifically about the special |
Session has been removed in #5946
What about SPA? This was a really bad move |
If you application is SPA only, then you should be able to achieve the same behaviour by creating your own store and calling it "session" 👍 |
If you have access to a server, then you can return the equivalent of session data from a |
@Rich-Harris How do I get the data from |
@dummdidumm Thanks a lot! Didn't even know that data prop existed. 👍🏻 |
Replaces `getSession` with `auth` given that `getSession` is now deprecated. Refer to: sveltejs/kit#5883 for context. The following PR also serves as context for the same milestone: sveltejs/kit#5946
fix: use `auth` over `getSession` Replaces `getSession` with `auth` given that `getSession` is now deprecated. Refer to: sveltejs/kit#5883 for context. The following PR also serves as context for the same milestone: sveltejs/kit#5946
Implements #5883. This removes
event.session
fromload
, thesession
store, andgetSession
. It's easy to useevent.locals
inhandle
along with+layout.server.js
/+page.server.js
to provide equivalent functionality.Closes #4426.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpm changeset
and following the prompts. All changesets should bepatch
until SvelteKit 1.0