Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deco/deps.ts>supabase.Subscription

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
interface supabase.Subscription
import { type supabase } from "https://deno.land/x/deco@1.35.3/deps.ts";
const { Subscription } = supabase;

Properties

id: string

The subscriber UUID. This will be set by the client.

callback: (event: AuthChangeEvent, session: Session | null) => void

The function to call every time there is an event. eg: (eventName) => {}

unsubscribe: () => void

Call this to remove the listener.