Complete the code to initialize the Supabase client with the correct URL.
const supabase = createClient('[1]', 'public-anon-key')
The Supabase client needs the project URL to connect to your backend services.
Complete the code to sign up a user with email and password using Supabase Auth.
const { data, error } = await supabase.auth.[1]({ email, password })The method to create a new user with email and password is signUp.
Fix the error in the code to upload a file to Supabase Storage bucket named 'avatars'.
const { data, error } = await supabase.storage.from('avatars').[1]('profile.png', file)The correct method to upload a file is upload.
Fill both blanks to subscribe to realtime changes on the 'messages' table.
const subscription = supabase.[1]('messages').on('INSERT', payload => { console.log('New message:', [2]) }).subscribe()
You use from to specify the table and payload.new to get the inserted row.
Fill all three blanks to define and deploy an Edge Function named 'hello'.
import { serve } from '@supabase/functions' serve(async (req) => { return new Response('[1]', { status: [2], headers: { '[3]': 'text/plain' } }) })
The response body is a greeting string, status is 200 for success, and header key is 'Content-Type'.