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 server-side auth client

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

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

// Access auth admin api
const adminAuthClient = supabase.auth.admin