Receive a notification every time an auth event happens.
AuthState.SignedIn
, AuthState.SignedOut
, AuthState.UserUpdated
, AuthState.PasswordRecovery
, AuthState.TokenRefreshed
supabase.Auth.AddStateChangedListener((sender, changed) =>
\{
switch (changed)
\{
case AuthState.SignedIn:
break;
case AuthState.SignedOut:
break;
case AuthState.UserUpdated:
break;
case AuthState.PasswordRecovery:
break;
case AuthState.TokenRefreshed:
break;
\}
\});