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

x/gotrue/src/index.ts>GoTrueClient#onAuthStateChange

An isomorphic Javascript library for GoTrue.
Latest
method GoTrueClient.prototype.onAuthStateChange
Re-export
import { GoTrueClient } from "https://deno.land/x/gotrue@3.0.0/src/index.ts";

Receive a notification every time an auth event happens.

Parameters

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

Returns

{ data: Subscription | null; error: ApiError | null; }

A subscription object which can be used to unsubscribe itself.