The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Switch Expo quickstart to local storage (#41977)
Chris Chinchillaf955308dbdcd
diff --git a/apps/docs/content/guides/getting-started/quickstarts/expo-react-native.mdx b/apps/docs/content/guides/getting-started/quickstarts/expo-react-native.mdxindex f4fd73b4cb6..35d1db45cc6 100644--- a/apps/docs/content/guides/getting-started/quickstarts/expo-react-native.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/expo-react-native.mdx@@ -45,7 +45,7 @@ hideToc: true<StepHikeCompact.Code>```bash name=Terminal- cd my-app && npx expo install @supabase/supabase-js @react-native-async-storage/async-storage react-native-url-polyfill+ cd my-app && npx expo install @supabase/supabase-js react-native-url-polyfill expo-sqlite```</StepHikeCompact.Code>@@ -82,7 +82,7 @@ hideToc: trueCreate a helper file at `lib/supabase.ts` to initialize the Supabase client using the environment variables.- The code below uses [AsyncStorage](https://www.npmjs.com/package/@react-native-async-storage/async-storage) to persist the user session in your app.+ The code below uses Expo's localStorage polyfill to persist authentication sessions.</StepHikeCompact.Details>@@ -91,14 +91,14 @@ hideToc: true```ts name=lib/supabase.tsimport 'react-native-url-polyfill/auto'import { createClient } from '@supabase/supabase-js'- import AsyncStorage from '@react-native-async-storage/async-storage'+ import 'expo-sqlite/localStorage/install';const supabaseUrl = process.env.EXPO_PUBLIC_SUPABASE_URLconst supabaseAnonKey = process.env.EXPO_PUBLIC_SUPABASE_PUBLISHABLE_KEYexport const supabase = createClient(supabaseUrl, supabaseAnonKey, {auth: {- storage: AsyncStorage,+ storage: localStorage,autoRefreshToken: true,persistSession: true,detectSessionInUrl: false,