The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: parse the return value into an object
Akosa335a47136fa
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-expo.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-expo.mdxindex e5e150532f8..bcbe40c50cd 100644--- a/apps/docs/pages/guides/getting-started/tutorials/with-expo.mdx+++ b/apps/docs/pages/guides/getting-started/tutorials/with-expo.mdx@@ -50,15 +50,17 @@ These variables will be exposed on the browser, and that's completely fine sinceimport * as SecureStore from "expo-secure-store";import { createClient } from '@supabase/supabase-js'-const ExpoSecureStoreAdapter = {+const ExpoSecureStorageAdapter = {getItem: async (key: string) => {- return await SecureStore.getItemAsync(key);+ const value = (await SecureStore.getItemAsync(key)) as string;++ return JSON.parse(value);},- setItem: async (key: string, value: string) => {+ setItem: (key: string, value: string) => {SecureStore.setItemAsync(key, JSON.stringify(value));},- removeItem: async (key: string) => {- await SecureStore.deleteItemAsync(key);+ removeItem: (key: string) => {+ SecureStore.deleteItemAsync(key);},};