Home

Initializing

Create a new client for use in the browser.

You can initialize Supabase with the static initialize() method of Supabase class.

The Supabase client is your entrypoint to the rest of the Supabase functionality and is the easiest way to interact with everything we offer within the Supabase ecosystem.

Parameters
  • supabaseUrl
    REQUIRED
    string

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

  • supabaseKey
    REQUIRED
    string

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

  • options
    Optional
    SupabaseClientOptions

Future<void> main() async {
  await Supabase.initialize(
    url: 'https://xyzcompany.supabase.co',
    anonKey: 'public-anon-key',
  );

  runApp(MyApp());
}

// Get a reference your Supabase client 
final supabase = Supabase.instance.client;
Need some help?

Not to worry, our specialist engineers are here to help. Submit a support ticket through the Dashboard.