Releases: j4w8n/sveltekit-supabase-ssr
v0.16.0
What's Changed
- refactor: simpler user_metadata, direct return by @j4w8n in #21
- feat: add getValidatedSession by @j4w8n in #23
- fix: getValidatedSession return type (7363ad3)
- chore: update dependencies by @j4w8n in #24
getValidatedSession
can run on the server side or client side. We use this so that client-side sessions match server-side sessions. Previously, the server-side was a validated session (from hooks.server.ts) and the client-side was a native session from getSession
(in root layout.ts).
Full Changelog: v0.15.0...v0.16.0
v0.15.0
What's Changed
- feat: add
debug
script to disable Vite cache when changing 3rd party code that runs in the browser (c98eeca) - fix: better reactivity (54d4224) (3acc549)
- fix: do not throw on
AuthError
(2142617) - fix: only return
email
for signIn and signUp (921992f) - chore: update dependencies (c0f09c4)
Full Changelog: v0.14.0...v0.15.0
v0.14.0
- feat: use
getClaims
to validate a session on the server side (215e471)
Be aware that if your project is using symmetric JWTs, a network request will be made to your Supabase instance, for every server request, in order to verify the JWT and user. I am making this change in preparation for the release of asymmetric JWTs. If you do not want to make this change yet, then you should use hooks.server.ts code from v0.13.0.
Full Changelog: v0.13.0...v0.14.0
v0.13.0
What's Changed
- feat: show when session expires, on navbar (1de42e0)
- refactor: use new getRequestEvent() to reduce actions boilerplate(3ab7899)
- refactor: use $effect instead of onMount by @j4w8n in #10
- refactor: rolling back my custom Fail utility (5f8cc1b)
- fix: show change password form if providers contains email by @j4w8n in #12
- fix: secure anonymous email user conversion by @j4w8n in #15
New Contributors
Full Changelog: v0.12.0...v0.13.0
The new getRequestEvent()
:
Allows us to abstract away repetitive things, along with defaulting types to string
. For example, turns this:
verify_otp: async ({ request, locals: { supabase } }) => {
/**
* This action is used to update a phone number or
* update an email address when converting an anonymous user.
*/
const formData = await request.formData()
const otp = formData.get('otp') as string
const phone = formData.get('phone') as string
const email = formData.get('email') as string
const password = formData.get('password') as string
...
}
into this:
verify_otp: async ({ locals: { supabase } }) => {
/**
* This action is used to update a phone number or
* update an email address when converting an anonymous user.
*/
const { otp, phone, email, password } = await getFormData('otp', 'phone', 'email', 'password')
...
}
v0.12.0
What's Changed
- Migration to Svelte 5 by @david-palomo in #8
New Contributors
- @david-palomo made their first contribution in #8
Full Changelog: v0.11.0...v0.12.0
v0.11.0
v0.10.1
bump dependencies (ba0d26b)
@sveltejs/adapter-auto 3.2.2 → 3.2.4
@sveltejs/kit 2.5.18 → 2.5.24
@sveltejs/vite-plugin-svelte 3.1.1 → 3.1.2
svelte 4.2.18 → 4.2.19
svelte-check 3.8.5 → 3.8.6
tslib 2.6.3 → 2.7.0
vite 5.3.5 → 5.4.2
@supabase/ssr 0.4.1→ 0.5.0
@supabase/supabase-js 2.45.0 → 2.45.2
jose 5.6.3 → 5.7.0
v0.10.0
v0.9.0
- feat: delete users by id (for your convenience during demo) (07060e1)
- feat: add or change a user's phone number (f6b5d1f)
- feat: phone login via OTP (requires you to setup SMS) (15165f2)
- fix: redirect to /self after OAuth identity link (b34ad1e)
- fix: allow updating of SSR beyond 0.4.0 (78c27da)
- fix: do not cache protected page content (c17db6d)
- refactor: centralize Fail function (e874e5c)
Full Changelog: v0.8.0...v0.9.0