Skip to content

Commit

Permalink
update to feature
Browse files Browse the repository at this point in the history
  • Loading branch information
foloy authored and foloy committed Oct 10, 2023
1 parent 599e9c6 commit ee5c77b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/supabase.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import AsyncStorage from '@react-native-async-storage/async-storage';
import { createClient } from '@supabase/supabase-js';
import { useState } from 'react';
import 'react-native-url-polyfill/auto';

const supabaseUrl = 'https://kvfpmjezholwvgdmabhr.supabase.co';
const supabaseAnonKey =
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imt2ZnBtamV6aG9sd3ZnZG1hYmhyIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTUwNzAzMDIsImV4cCI6MjAxMDY0NjMwMn0.e6CFmLq4kjNnoGzHDd_hVSUZI6gHaDU-dWu_1Uhd6Mk';
const [supabaseUrl, setSupabaseUrl] = useState<string>('');
const [supabaseAnonKey, setSupabaseAnonKey] = useState<string>('');

if (process.env.SUPABASE_URL && process.env.SUPABASE_ANON_KEY) {
setSupabaseUrl(process.env.SUPABASE_URL);
setSupabaseAnonKey(process.env.SUPABASE_ANON_KEY);
}
export const supabase = createClient(supabaseUrl, supabaseAnonKey, {
auth: {
storage: AsyncStorage,
Expand Down

0 comments on commit ee5c77b

Please sign in to comment.