using WebPush;

var vapidKeys = VapidHelper.GenerateVapidKeys();

Console.WriteLine("VAPID Keys Generated:");
Console.WriteLine("====================");
Console.WriteLine($"Public Key:  {vapidKeys.PublicKey}");
Console.WriteLine($"Private Key: {vapidKeys.PrivateKey}");
Console.WriteLine();
Console.WriteLine("Add these to your appsettings.json:");
Console.WriteLine(@"{");
Console.WriteLine(@"  ""WebPush"": {");
Console.WriteLine($@"    ""VapidPublicKey"": ""{vapidKeys.PublicKey}"",");
Console.WriteLine($@"    ""VapidPrivateKey"": ""{vapidKeys.PrivateKey}"",");
Console.WriteLine($@"    ""Subject"": ""mailto:admin@littleshop.local""");
Console.WriteLine(@"  }");
Console.WriteLine(@"}");