using System.Security.Cryptography; using System.Text.Json; namespace HrynCo.NotificationService.Web.IntegrationTests; internal static class PushChannelTestCredentials { public static string Create(string projectId = "test-project") { using var rsa = RSA.Create(2048); return JsonSerializer.Serialize(new { type = "service_account", project_id = projectId, client_email = "test@example.invalid", private_key = rsa.ExportPkcs8PrivateKeyPem() }); } }