Complete the code to initialize a Supabase client with the correct URL.
const supabase = createClient('[1]', 'public-anon-key');
The Supabase client requires your project URL, which looks like https://xyzcompany.supabase.co.
Complete the code to sign in a user with Supabase using email and password.
const { data, error } = await supabase.auth.[1]({ email, password });Supabase uses signInWithPassword to sign in users with email and password.
Fix the error in the Supabase query to select all rows from 'profiles' table.
const { data, error } = await supabase.from('profiles').[1]('*');The correct method to fetch rows in Supabase is select.
Fill both blanks to write a Firebase Realtime Database reference for the current user.
const dbRef = ref([1], 'users/' + [2].currentUser.uid);
Firebase Realtime Database uses database() to get the database instance and auth() to get the current user ID.
Fill all three blanks to write a Supabase insert query with error handling.
const { data, error } = await supabase.from('[1]').[2]({ name: '[3]' });To insert data into the 'profiles' table, use from('profiles') and insert method with the data object.