Python: Auth Admin

Examples

Create server-side auth client

from supabase import create_client
from supabase.lib.client_options import ClientOptions

supabase = create_client(
  supabase_url, 
  service_role_key,
  options=ClientOptions(
    auto_refresh_token=False,
    persist_session=False,
  )
)

# Access auth admin api
admin_auth_client = supabase.auth.admin