Skip to content
masterclass Buddy

Supabase · Method

auth.onAuthStateChange

Registers a callback for Supabase Auth events. Use it on the frontend to react to sign-ins, sign-outs, session loading, token refreshes, user updates, and password recovery.

Last updated

Syntax

supabase.auth.onAuthStateChange(callback)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • initialize
  • refreshSession
  • resetPasswordForEmail
  • signOut
  • updateUser

Source: JavaScript API Reference | Supabase Docs. Checked 2026-11-03.