Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 778 Bytes

File metadata and controls

24 lines (16 loc) · 778 Bytes

agnostic-adapter-supabase

Vendor-specific adapters for @codectyl/agnostic-core.

The package provides:

  • SupabaseAuthAdapter, which verifies access tokens with Supabase Auth.
  • SupabaseStorageAdapter, which implements file operations against one configured Supabase Storage bucket.

Keep all Supabase SDK imports and persistence details in this package; core remains vendor-neutral.

Configuration

import { SupabaseAuthAdapter, SupabaseStorageAdapter } from "agnostic-adapter-supabase";

const auth = new SupabaseAuthAdapter(supabaseUrl, supabaseKey);
const storage = new SupabaseStorageAdapter(supabaseUrl, supabaseKey, "files");

The storage bucket is explicit configuration. The adapter does not assume a bucket name or storage category.