JavaScript: Overview

Examples

Create auth client

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

const supabase = createClient(supabase_url, anon_key)

Create auth client (server-side)

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

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