Skip to main content
Module

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

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Very Popular
Go to Latest
method supabase.GoTrueClient.prototype.onAuthStateChange
Re-export
import { supabase } from "https://deno.land/x/live@1.75.5/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; }; }