C#: Listen to auth events

Receive a notification every time an auth event happens.

Examples

Listen to auth changes

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;
    \}
\});