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

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

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
method supabase.GoTrueClient.prototype.onAuthStateChange
Re-export
import { supabase } from "https://deno.land/x/deco@1.35.3/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; }; }