Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Subscription

interface Subscription {
callback: (event: AuthChangeEvent, session: Session | null) => void;
id: string;
unsubscribe: () => void;
}

§Properties

§
callback: (event: AuthChangeEvent, session: Session | null) => void
[src]

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

§
id: string
[src]

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

§
unsubscribe: () => void
[src]

Call this to remove the listener.