For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

JavaScript: Overview

Examples

Create auth client

import { createClient } from '@supabase/supabase-js'

const supabase = createClient(supabase_url, publishable_key)

Create auth client (server-side)

import { createClient } from '@supabase/supabase-js'

const supabase = createClient(supabase_url, publishable_key, {
  auth: {
    autoRefreshToken: false,
    persistSession: false,
    detectSessionInUrl: false
  }
})