Home

Listen to auth events

Receive a notification every time an auth event happens.

Parameters
  • callback
    REQUIRED
    function

    A callback function to be invoked when an auth event happens.


supabase.auth.onAuthStateChange((event, session) => {
  console.log(event, session)
})