mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 11:25:06 +03:00
Fixes #42192 Replaces the deprecated `getSession` call with `getClaims` in the SolidJS tutorial documentation (`with-solidjs.mdx`). Changes: - `supabase.auth.getSession()` → `supabase.auth.getClaims()` - `data.session` → `data.claims` This follows the recommended migration pattern per the Supabase auth docs, and is consistent with the same fix applied to the Refine tutorial in #43006. --------- Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
8 lines
296 B
TypeScript
8 lines
296 B
TypeScript
import { createClient } from '@supabase/supabase-js'
|
|
import { Database } from './schema'
|
|
|
|
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL
|
|
const supabasePublishableKey = import.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY
|
|
|
|
export const supabase = createClient(supabaseUrl, supabasePublishableKey)
|