Module

x/live/deps.ts>supabase.GoTrueClient#onAuthStateChange

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
method supabase.GoTrueClient.prototype.onAuthStateChange
import { supabase } from "https://dotland.deno.dev/x/live@1.63.12/deps.ts";
const { GoTrueClient } = supabase;

Receive a notification every time an auth event happens.

Parameters

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

A callback function to be invoked when an auth event happens.

Returns

{ data: { subscription: Subscription; }; }