Listen to auth events
Receive a notification every time an auth event happens.
Parameters
- callbackREQUIREDfunction
A callback function to be invoked when an auth event happens.
supabase.auth.onAuthStateChange((event, session) => {
console.log(event, session)
})