Initializing

You can initialize a new Supabase client using the createClient() method.

Parameters

  • supabaseUrlrequiredstring

    The unique Supabase URL which is supplied when you create a new project in your project dashboard.

  • supabaseKeyrequiredstring

    The unique Supabase Key which is supplied when you create a new project in your project dashboard.

  • optionsoptionalSupabaseClientOptions

    No description provided.

Examples

createClient()

import { createClient } from '@supabase/supabase-js'
// Create a single supabase client for interacting with your database
const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key")

With additional parameters

import { createClient } from '@supabase/supabase-js'
const options = { }
const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key", options)