The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update doc to include handling of invalidateAll
Andrew Smithed0c52c59599
diff --git a/apps/reference/docs/guides/auth/auth-helpers/sveltekit.mdx b/apps/reference/docs/guides/auth/auth-helpers/sveltekit.mdxindex 8345b6f5377..88dd5305652 100644--- a/apps/reference/docs/guides/auth/auth-helpers/sveltekit.mdx+++ b/apps/reference/docs/guides/auth/auth-helpers/sveltekit.mdx@@ -73,9 +73,14 @@ Edit your `+layout.svelte` file and set up the client side.// we need to make sure the supabase instance is initialized on the clientimport '$lib/db';import { startSupabaseSessionSync } from '@supabase/auth-helpers-sveltekit';+ import { page } from '$app/stores';+ import { invalidateAll } from '$app/navigation';// this sets up automatic token refreshing- startSupabaseSessionSync();+ startSupabaseSessionSync({+ page,+ handleRefresh: () => invalidateAll()+ });</script><slot />@@ -520,9 +525,14 @@ import { SupaAuthHelper } from '@supabase/auth-helpers-svelte';// we need to make sure the supabase instance is initialized on the clientimport '$lib/db';import { startSupabaseSessionSync } from '@supabase/auth-helpers-sveltekit';+ import { page } from '$app/stores';+ import { invalidateAll } from '$app/navigation';// this sets up automatic token refreshing- startSupabaseSessionSync();+ startSupabaseSessionSync({+ page,+ handleRefresh: () => invalidateAll()+ });</script><slot />