Remove console writelines (#914)

This commit is contained in:
Leendert de Borst
2025-06-12 14:46:49 +02:00
committed by Leendert de Borst
parent ef2a58f784
commit eb64d86c78
2 changed files with 0 additions and 8 deletions

View File

@@ -224,17 +224,11 @@ public sealed class AuthService(HttpClient httpClient, ILocalStorageService loca
{
await localStorage.SetItemAsStringAsync("webAuthnEnabled", enabled.ToString().ToLower());
Console.WriteLine($"Set webAuthnEnabled to {enabled}");
// Encrypt the current encryption key with the webauthn derived key and store it in local storage.
if (enabled && !string.IsNullOrEmpty(webauthCredentialId) && !string.IsNullOrEmpty(webauthSalt) && !string.IsNullOrEmpty(webauthCredentialDerivedKey))
{
Console.WriteLine("Encrypting encryption key with webauthn derived key");
var encryptionKeyBase64 = Convert.ToBase64String(GetEncryptionKey());
Console.WriteLine($"encryptionKeyBase64: {encryptionKeyBase64}");
var encryptedEncryptionKey = await jsInteropService.SymmetricEncrypt(encryptionKeyBase64, webauthCredentialDerivedKey);
Console.WriteLine($"encryptedEncryptionKey: {encryptedEncryptionKey}");
Console.WriteLine($"webauthCredentialDerivedKey: {webauthCredentialDerivedKey}");
await localStorage.SetItemAsStringAsync("webAuthnCredentialId", webauthCredentialId);
await localStorage.SetItemAsStringAsync("webAuthnSalt", webauthSalt);
await localStorage.SetItemAsStringAsync("webAuthnEncryptedEncryptionKey", encryptedEncryptionKey);

View File

@@ -60,8 +60,6 @@ public sealed class CredentialService(HttpClient httpClient, DbService dbService
// Generate a random identity using the TypeScript library
var identity = await jsInteropService.GenerateRandomIdentityAsync(dbService.Settings.DefaultIdentityLanguage);
Console.WriteLine($"Generated identity: {identity.FirstName} {identity.LastName} {identity.BirthDate} {identity.Gender} {identity.NickName}");
// Generate random values for the Identity properties
credential.Username = identity.NickName;
credential.Alias.FirstName = identity.FirstName;