Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: mention `processLock` when using react native (#35076)

Stojan Dimitrovski554290b44cb8
diff --git a/apps/docs/content/guides/auth/quickstarts/react-native.mdx b/apps/docs/content/guides/auth/quickstarts/react-native.mdx
index 2bae82985e1..ac779e0e5fc 100644
--- a/apps/docs/content/guides/auth/quickstarts/react-native.mdx
+++ b/apps/docs/content/guides/auth/quickstarts/react-native.mdx
@@ -74,7 +74,7 @@ hideToc: true
import { AppState } from 'react-native'
import 'react-native-url-polyfill/auto'
import AsyncStorage from '@react-native-async-storage/async-storage'
- import { createClient } from '@supabase/supabase-js'
+ import { createClient, processLock } from '@supabase/supabase-js'
const supabaseUrl = YOUR_REACT_NATIVE_SUPABASE_URL
const supabaseAnonKey = YOUR_REACT_NATIVE_SUPABASE_ANON_KEY
@@ -85,6 +85,7 @@ hideToc: true
autoRefreshToken: true,
persistSession: true,
detectSessionInUrl: false,
+ lock: processLock,
},
})