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.
SubscribeRelated
initializerefreshSessionresetPasswordForEmailsignOutupdateUser