IIdentityProvider.cs 612 B

1234567891011121314151617181920
  1. namespace PixiEditor.IdentityProvider;
  2. public interface IIdentityProvider
  3. {
  4. public bool AllowsLogout { get; }
  5. public string ProviderName { get; }
  6. public IUser User { get; }
  7. public bool IsLoggedIn { get; }
  8. public Uri? EditProfileUrl { get; }
  9. public bool IsValid { get; }
  10. public string InvalidInfo { get; }
  11. public event Action<string, object> OnError;
  12. public event Action<List<ProductData>> OwnedProductsUpdated;
  13. public event Action<string> UsernameUpdated;
  14. public void Initialize();
  15. public event Action<IUser> OnLoggedIn;
  16. public event Action LoggedOut;
  17. }