Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Cleanup (#520)

Leendert de Borst5ec9e534492a
diff --git a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/AppConfig.kt b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/AppInfo.kt
similarity index 98%
rename from apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/AppConfig.kt
rename to apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/AppInfo.kt
index 2372ff5c8..1c88c7b28 100644
--- a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/AppConfig.kt
+++ b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/AppInfo.kt
@@ -4,7 +4,7 @@ package net.aliasvault.app.vaultstore
* Application configuration constants
* This file contains version requirements and other app-wide configuration values
*/
-object AppConfig {
+object AppInfo {
/**
* The minimum supported AliasVault server (API) version.
*
diff --git a/apps/mobile-app/hooks/useVaultSync.ts b/apps/mobile-app/hooks/useVaultSync.ts
index 8a0c1d0af..88c8690c3 100644
--- a/apps/mobile-app/hooks/useVaultSync.ts
+++ b/apps/mobile-app/hooks/useVaultSync.ts
@@ -92,8 +92,6 @@ export const useVaultSync = () : {
onStatus?.(t('vault.syncingUpdatedVault'));
hasNewVault = await NativeVaultManager.syncVault();
- console.log(`VaultSync: syncVault completed, hasNewVault=${hasNewVault}`);
-
// Add artificial delay for initial sync UX
if (enableDelay && hasNewVault) {
await new Promise(resolve => setTimeout(resolve, 1000));
@@ -104,8 +102,6 @@ export const useVaultSync = () : {
// Get the error code from the native layer
const errorCode = getVaultSyncErrorCode(err);
- console.log('VaultSync: errorCode:', errorCode);
-
// Handle specific error codes
switch (errorCode) {
case VaultSyncErrorCode.SESSION_EXPIRED:
@@ -143,7 +139,6 @@ export const useVaultSync = () : {
try {
// We always re-unlock the vault to force reload of database connection
// This ensures React Native's SQLite connection sees changes made by native layer
- console.log('VaultSync: Re-unlocking vault to refresh database connection');
await NativeVaultManager.unlockVault();
// Check if the vault needs migration
@@ -162,7 +157,6 @@ export const useVaultSync = () : {
// Register credential identities after sync
try {
await NativeVaultManager.registerCredentialIdentities();
- console.log('Vault sync: Successfully registered credential identities');
} catch (error) {
console.warn('Vault sync: Failed to register credential identities:', error);
// Don't fail the sync if credential registration fails
diff --git a/apps/mobile-app/ios/Autofill/CredentialProviderViewController+Credential.swift b/apps/mobile-app/ios/Autofill/CredentialProviderViewController+Credential.swift
index c0a50de7c..940a7aed3 100644
--- a/apps/mobile-app/ios/Autofill/CredentialProviderViewController+Credential.swift
+++ b/apps/mobile-app/ios/Autofill/CredentialProviderViewController+Credential.swift
@@ -72,7 +72,6 @@ extension CredentialProviderViewController: CredentialProviderDelegate {
// QuickType bar suggestions are disabled on iOS <26, so this should only be called on iOS 26+
if #unavailable(iOS 26.0) {
// iOS < 26 - we do not support quick autofill due to buggy behavior
- print("provideCredentialWithoutUserInteraction called on iOS <26 (unexpected)")
self.extensionContext.cancelRequest(
withError: NSError(
domain: ASExtensionErrorDomain,
diff --git a/apps/mobile-app/ios/Autofill/CredentialProviderViewController+Passkey.swift b/apps/mobile-app/ios/Autofill/CredentialProviderViewController+Passkey.swift
index 0cefaf36f..55143180b 100644
--- a/apps/mobile-app/ios/Autofill/CredentialProviderViewController+Passkey.swift
+++ b/apps/mobile-app/ios/Autofill/CredentialProviderViewController+Passkey.swift
@@ -247,7 +247,6 @@ extension CredentialProviderViewController: PasskeyProviderDelegate {
userId: result.passkey.userHandle
)
}
- print("PasskeyRegistration: Found \(existingPasskeys.count) existing passkeys for rpId: \(rpId)")
} catch {
print("PasskeyRegistration: Failed to query existing passkeys: \(error)")
// Continue with empty list
diff --git a/apps/mobile-app/ios/Autofill/CredentialProviderViewController.swift b/apps/mobile-app/ios/Autofill/CredentialProviderViewController.swift
index d51e06f02..47ab00140 100644
--- a/apps/mobile-app/ios/Autofill/CredentialProviderViewController.swift
+++ b/apps/mobile-app/ios/Autofill/CredentialProviderViewController.swift
@@ -61,8 +61,6 @@ public class CredentialProviderViewController: ASCredentialProviderViewControlle
override public func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
- print("CredentialProviderViewController: viewWillAppear called - isPasskeyRegistrationMode=\(isPasskeyRegistrationMode), isPasskeyAuthenticationMode=\(isPasskeyAuthenticationMode), domain=\(initialServiceUrl ?? "nil")")
-
// Don't set up credential view if we're in passkey registration mode
if isPasskeyRegistrationMode {
return
@@ -148,8 +146,6 @@ public class CredentialProviderViewController: ASCredentialProviderViewControlle
}
override public func prepareCredentialList(for: [ASCredentialServiceIdentifier], requestParameters: ASPasskeyCredentialRequestParameters) {
- print("CredentialProviderViewController: prepareCredentialList called for passkey")
-
self.isPasskeyAuthenticationMode = true
self.currentPasskeyRequest = requestParameters
self.initialRpId = requestParameters.relyingPartyIdentifier
@@ -157,8 +153,6 @@ public class CredentialProviderViewController: ASCredentialProviderViewControlle
}
override public func prepareCredentialList(for serviceIdentifiers: [ASCredentialServiceIdentifier]) {
- print("CredentialProviderViewController: prepareCredentialList called with \(serviceIdentifiers.count) identifiers")
-
let matchedDomains = serviceIdentifiers.map { $0.identifier.lowercased() }
if let firstDomain = matchedDomains.first {
print("CredentialProviderViewController: First domain: \(firstDomain)")
diff --git a/apps/mobile-app/ios/NativeVaultManager/VaultManager.swift b/apps/mobile-app/ios/NativeVaultManager/VaultManager.swift
index 8dcccc01e..8e735e519 100644
--- a/apps/mobile-app/ios/NativeVaultManager/VaultManager.swift
+++ b/apps/mobile-app/ios/NativeVaultManager/VaultManager.swift
@@ -443,7 +443,6 @@ public class VaultManager: NSObject {
if #available(iOS 26.0, *) {
// iOS 26+: Register both passwords and passkeys for QuickType and manual selection
try await CredentialIdentityStore.shared.saveCredentialIdentities(credentials)
- print("VaultManager: Registered credential identities (passwords + passkeys) for QuickType on iOS 26+")
} else {
// iOS 17-25: Only register passkeys (skip passwords for QuickType to avoid biometric issues)
// But passkeys MUST be registered so iOS knows to offer this extension for passkey authentication
@@ -452,7 +451,6 @@ public class VaultManager: NSObject {
return !passkeys.isEmpty
}
try await CredentialIdentityStore.shared.saveCredentialIdentities(passkeyOnlyCredentials, passkeyOnly: true)
- print("VaultManager: Registered \(passkeyOnlyCredentials.count) passkey identities on iOS <26 (password QuickType disabled)")
}
await MainActor.run {
@@ -635,9 +633,7 @@ public class VaultManager: NSObject {
rejecter reject: @escaping RCTPromiseRejectBlock) {
Task {
do {
- print("VaultManager: Starting vault sync")
let hasNewVault = try await vaultStore.syncVault(using: webApiService)
- print("VaultManager: Vault sync succeeded, hasNewVault: \(hasNewVault)")
await MainActor.run {
resolve(hasNewVault)
}
@@ -661,9 +657,7 @@ public class VaultManager: NSObject {
rejecter reject: @escaping RCTPromiseRejectBlock) {
Task {
do {
- print("VaultManager: Starting vault mutation")
try await vaultStore.mutateVault(using: webApiService)
- print("VaultManager: Vault mutation succeeded")
await MainActor.run {
resolve(true) // Return explicit success
}
diff --git a/apps/mobile-app/ios/VaultStoreKit/AppConfig.swift b/apps/mobile-app/ios/VaultStoreKit/AppInfo.swift
similarity index 97%
rename from apps/mobile-app/ios/VaultStoreKit/AppConfig.swift
rename to apps/mobile-app/ios/VaultStoreKit/AppInfo.swift
index 26cfd139c..657d343ea 100644
--- a/apps/mobile-app/ios/VaultStoreKit/AppConfig.swift
+++ b/apps/mobile-app/ios/VaultStoreKit/AppInfo.swift
@@ -2,7 +2,7 @@ import Foundation
/// Application configuration constants
/// This file contains version requirements and other app-wide configuration values
-public enum AppConfig {
+public enum AppInfo {
/// The minimum supported AliasVault server (API) version.
///
/// If the server version is below this minimum, the client will reject the connection
diff --git a/apps/mobile-app/ios/VaultStoreKit/VaultConstants.swift b/apps/mobile-app/ios/VaultStoreKit/Constants/VaultConstants.swift
similarity index 100%
rename from apps/mobile-app/ios/VaultStoreKit/VaultConstants.swift
rename to apps/mobile-app/ios/VaultStoreKit/Constants/VaultConstants.swift
diff --git a/apps/mobile-app/ios/VaultStoreKit/CredentialIdentityStore.swift b/apps/mobile-app/ios/VaultStoreKit/CredentialIdentityStore.swift
index 9aecf0496..aa8032b11 100644
--- a/apps/mobile-app/ios/VaultStoreKit/CredentialIdentityStore.swift
+++ b/apps/mobile-app/ios/VaultStoreKit/CredentialIdentityStore.swift
@@ -4,8 +4,8 @@ import VaultModels
/**
* Native iOS implementation of the CredentialIdentityStore protocol.
*
- * This class is used to save and remove credential identities from the system.
- * It is used to provide credentials to the system when the user is autocompleting a password.
+ * This class is used to save and remove credential identities from the iOS password
+ * and passkey autosuggest store, which is shown inline in the keyboard amongst other places.
*/
public class CredentialIdentityStore {
/// Get global credential store instance
@@ -81,33 +81,22 @@ public class CredentialIdentityStore {
allIdentities.append(contentsOf: passkeyIdentities)
- print("CredentialIdentityStore: Registering \(passwordIdentities.count) password identities and \(passkeyIdentities.count) passkey identities")
-
guard !allIdentities.isEmpty else {
- print("CredentialIdentityStore: No valid identities to save.")
return
}
let state = await storeState()
guard state.isEnabled else {
- print("CredentialIdentityStore: Credential identity store is not enabled. Please enable AutoFill in iOS Settings.")
return
}
- print("CredentialIdentityStore: Store is enabled, replacing all identities with \(allIdentities.count) new identities")
-
do {
// First, remove all existing credential identities to ensure a clean replacement
- print("CredentialIdentityStore: Removing all existing credential identities...")
try await store.removeAllCredentialIdentities()
- print("CredentialIdentityStore: Successfully removed all existing identities")
// Then save the new credential identities
- print("CredentialIdentityStore: Saving \(allIdentities.count) new credential identities...")
try await store.saveCredentialIdentities(allIdentities)
- print("CredentialIdentityStore: Successfully saved all new identities")
} catch {
- print("CredentialIdentityStore: Failed to replace credential identities: \(error)")
// Re-throw the error so the caller knows the operation failed
throw error
}
diff --git a/apps/mobile-app/ios/VaultStoreKit/VaultSyncError.swift b/apps/mobile-app/ios/VaultStoreKit/Enums/VaultSyncError.swift
similarity index 100%
rename from apps/mobile-app/ios/VaultStoreKit/VaultSyncError.swift
rename to apps/mobile-app/ios/VaultStoreKit/Enums/VaultSyncError.swift
diff --git a/apps/mobile-app/ios/VaultStoreKit/StringExtensions.swift b/apps/mobile-app/ios/VaultStoreKit/Extensions/StringExtensions.swift
similarity index 100%
rename from apps/mobile-app/ios/VaultStoreKit/StringExtensions.swift
rename to apps/mobile-app/ios/VaultStoreKit/Extensions/StringExtensions.swift
diff --git a/apps/mobile-app/ios/VaultStoreKit/Models/WebApiResponse.swift b/apps/mobile-app/ios/VaultStoreKit/Models/WebApiResponse.swift
new file mode 100644
index 000000000..5b4361959
--- /dev/null
+++ b/apps/mobile-app/ios/VaultStoreKit/Models/WebApiResponse.swift
@@ -0,0 +1,18 @@
+/**
+ * Response object from a WebAPI request containing status code, body, and headers
+ */
+public struct WebApiResponse {
+ /// The status code of the response
+ public let statusCode: Int
+ /// The body of the response
+ public let body: String
+ /// The headers of the response
+ public let headers: [String: String]
+
+ /// Initialize a new WebApiResponse
+ public init(statusCode: Int, body: String, headers: [String: String]) {
+ self.statusCode = statusCode
+ self.body = body
+ self.headers = headers
+ }
+}
diff --git a/apps/mobile-app/ios/VaultStoreKit/Passkeys/PasskeyAuthenticator.swift b/apps/mobile-app/ios/VaultStoreKit/Passkeys/PasskeyAuthenticator.swift
index ad7c681d8..436aabdf4 100644
--- a/apps/mobile-app/ios/VaultStoreKit/Passkeys/PasskeyAuthenticator.swift
+++ b/apps/mobile-app/ios/VaultStoreKit/Passkeys/PasskeyAuthenticator.swift
@@ -104,7 +104,7 @@ public class PasskeyAuthenticator {
prfSecret = prfBytes
}
}
-
+
// 10. Evaluate PRF values if requested during registration (some authenticators try this during registration already)
var prfResults: PrfResults?
if let inputs = prfInputs, let firstSalt = inputs.first, let secret = prfSecret {
@@ -190,7 +190,7 @@ public class PasskeyAuthenticator {
var prfResults: PrfResults?
if let inputs = prfInputs, let firstSalt = inputs.first, let secret = prfSecret {
var firstResult = try evaluatePrf(secret: secret, salt: firstSalt)
-
+
var secondResult: Data?
if let secondSalt = inputs.second {
secondResult = try evaluatePrf(secret: secret, salt: secondSalt)
@@ -220,12 +220,12 @@ public class PasskeyAuthenticator {
print("PasskeyAuthenticator: exportPublicKeyAsJWK - Expected 64 bytes but got \(rawRepresentation.count)")
throw PasskeyError.invalidPublicKey
}
-
+
// Get bytes and normalize: accept 64 (x||y) or 65 (0x04||x||y)
var bytes = [UInt8](publicKey.rawRepresentation)
if bytes.count == 65, bytes[0] == 0x04 { bytes.removeFirst() }
guard bytes.count == 64 else { throw PasskeyError.invalidPublicKey }
-
+
// Safe slicing without Data.subdata
let xBytes = Data(bytes[0..<32])
let yBytes = Data(bytes[32..<64])
@@ -246,12 +246,12 @@ public class PasskeyAuthenticator {
private static func exportPrivateKeyAsJWK(privateKey: P256.Signing.PrivateKey) throws -> Data {
let rawRepresentation = privateKey.rawRepresentation
let publicKey = privateKey.publicKey
-
+
// Get bytes and normalize: accept 64 (x||y) or 65 (0x04||x||y)
var bytes = [UInt8](publicKey.rawRepresentation)
if bytes.count == 65, bytes[0] == 0x04 { bytes.removeFirst() }
guard bytes.count == 64 else { throw PasskeyError.invalidPublicKey }
-
+
// Safe slicing without Data.subdata
let xBytes = Data(bytes[0..<32])
let yBytes = Data(bytes[32..<64])
@@ -291,9 +291,6 @@ public class PasskeyAuthenticator {
private static func buildCoseEc2Es256(publicKey: P256.Signing.PublicKey) throws -> Data {
let rawRepresentation = publicKey.rawRepresentation
- print("PasskeyAuthenticator: rawRepresentation count = \(rawRepresentation.count)")
- print("PasskeyAuthenticator: rawRepresentation hex = \(rawRepresentation.map { String(format: "%02x", $0) }.joined())")
-
// CryptoKit's rawRepresentation is 64 bytes (x || y) without the 0x04 prefix
// Unlike X9.63 format which is 65 bytes (0x04 || x || y)
guard rawRepresentation.count == 64 else {
@@ -305,7 +302,7 @@ public class PasskeyAuthenticator {
var bytes = [UInt8](publicKey.rawRepresentation)
if bytes.count == 65, bytes[0] == 0x04 { bytes.removeFirst() }
guard bytes.count == 64 else { throw PasskeyError.invalidPublicKey }
-
+
// Safe slicing without Data.subdata
let xBytes = bytes[0..<32]
let yBytes = bytes[32..<64]
diff --git a/apps/mobile-app/ios/VaultStoreKit/WebApiService.swift b/apps/mobile-app/ios/VaultStoreKit/Services/WebApiService.swift
similarity index 93%
rename from apps/mobile-app/ios/VaultStoreKit/WebApiService.swift
rename to apps/mobile-app/ios/VaultStoreKit/Services/WebApiService.swift
index 3a2b31b90..f1a32f035 100644
--- a/apps/mobile-app/ios/VaultStoreKit/WebApiService.swift
+++ b/apps/mobile-app/ios/VaultStoreKit/Services/WebApiService.swift
@@ -1,20 +1,5 @@
import Foundation
-/**
- * Response object from a WebAPI request containing status code, body, and headers
- */
-public struct WebApiResponse {
- public let statusCode: Int
- public let body: String
- public let headers: [String: String]
-
- public init(statusCode: Int, body: String, headers: [String: String]) {
- self.statusCode = statusCode
- self.body = body
- self.headers = headers
- }
-}
-
/**
* Native Swift WebAPI service for making HTTP requests to the AliasVault server.
* This service handles authentication, token refresh, and all HTTP operations.
@@ -33,10 +18,11 @@ public class WebApiService {
/// Shared UserDefaults for communication between main app and extension
private let userDefaults = UserDefaults(suiteName: VaultConstants.userDefaultsSuite)!
- public init() {}
-
// MARK: - Configuration Management
+ /// Initialize the WebApiService
+ public init() {}
+
/**
* Set the API URL
*/
@@ -127,10 +113,8 @@ public class WebApiService {
// Handle 401 Unauthorized - attempt token refresh
if response.statusCode == 401 && requiresAuth {
- print("WebApiService: Got 401 response, attempting token refresh...")
if let newToken = try await refreshAccessToken() {
- print("WebApiService: Token refresh successful, retrying original request")
// Retry the request with the new token
var retryHeaders = headers
retryHeaders["Authorization"] = "Bearer \(newToken)"
@@ -143,7 +127,6 @@ public class WebApiService {
headers: retryHeaders
)
- print("WebApiService: Retry completed with status \(retryResponse.statusCode)")
return retryResponse
} else {
print("WebApiService: Token refresh failed, returning 401")
@@ -330,7 +313,6 @@ public class WebApiService {
return nil
}
- print("WebApiService: Successfully extracted favicon (\(imageData.count) bytes)")
return imageData
} catch {
diff --git a/apps/mobile-app/ios/VaultStoreKit/VersionComparison.swift b/apps/mobile-app/ios/VaultStoreKit/Utils/VersionComparison.swift
similarity index 96%
rename from apps/mobile-app/ios/VaultStoreKit/VersionComparison.swift
rename to apps/mobile-app/ios/VaultStoreKit/Utils/VersionComparison.swift
index e2a7cb8f6..cba7df6b4 100644
--- a/apps/mobile-app/ios/VaultStoreKit/VersionComparison.swift
+++ b/apps/mobile-app/ios/VaultStoreKit/Utils/VersionComparison.swift
@@ -66,9 +66,9 @@ public enum VersionComparison {
///
/// - Parameters:
/// - serverVersion: The server version to validate
- /// - minimumVersion: The minimum required version (defaults to AppConfig.minServerVersion)
+ /// - minimumVersion: The minimum required version (defaults to AppInfo.minServerVersion)
/// - Returns: true if the server version is supported, false otherwise
- public static func isServerVersionSupported(_ serverVersion: String, minimumVersion: String = AppConfig.minServerVersion) -> Bool {
+ public static func isServerVersionSupported(_ serverVersion: String, minimumVersion: String = AppInfo.minServerVersion) -> Bool {
return isGreaterThanOrEqualTo(serverVersion, minimumVersion)
}
}
diff --git a/apps/mobile-app/ios/VaultStoreKit/VaultStore+Mutate.swift b/apps/mobile-app/ios/VaultStoreKit/VaultStore+Mutate.swift
index 108f0070a..a979937f3 100644
--- a/apps/mobile-app/ios/VaultStoreKit/VaultStore+Mutate.swift
+++ b/apps/mobile-app/ios/VaultStoreKit/VaultStore+Mutate.swift
@@ -124,12 +124,8 @@ extension VaultStore {
/// Note: The caller must wrap their database operations in beginTransaction()/commitTransaction()
/// which will trigger the encryption and local storage of the database.
public func mutateVault(using webApiService: WebApiService) async throws {
- print("VaultStore: Starting vault mutation")
-
// Prepare vault for upload
- print("VaultStore: Preparing vault for upload")
let vault = try prepareVault()
- print("VaultStore: Vault prepared successfully, credentials count: \(vault.credentialsCount)")
// Convert to JSON (use default key encoding which is camelCase)
let encoder = JSONEncoder()
@@ -143,8 +139,6 @@ extension VaultStore {
)
}
- print("VaultStore: Uploading vault to server (size: \(jsonString.count) bytes)")
-
// Upload to server
let response = try await webApiService.executeRequest(
method: "POST",
@@ -154,8 +148,6 @@ extension VaultStore {
requiresAuth: true
)
- print("VaultStore: Server response status code: \(response.statusCode)")
-
// Check response status
guard response.statusCode == 200 else {
print("VaultStore: Server rejected vault upload with status \(response.statusCode)")
@@ -190,7 +182,6 @@ extension VaultStore {
let vaultResponse: VaultPostResponse
do {
vaultResponse = try JSONDecoder().decode(VaultPostResponse.self, from: responseData)
- print("VaultStore: Parsed upload response - status: \(vaultResponse.status), newRevision: \(vaultResponse.newRevisionNumber)")
} catch {
print("VaultStore: Failed to parse vault upload response: \(error)")
print("VaultStore: Response body: \(response.body)")
@@ -253,7 +244,6 @@ extension VaultStore {
if let match = matches.first, match.numberOfRanges > 1 {
let versionRange = match.range(at: 1)
let version = nsString.substring(with: versionRange)
- print("VaultStore: Extracted database version '\(version)' from migration ID '\(migrationId)'")
return version
}
diff --git a/apps/mobile-app/ios/VaultStoreKit/VaultStore+Passkey.swift b/apps/mobile-app/ios/VaultStoreKit/VaultStore+Passkey.swift
index e162d013e..aac250d0b 100644
--- a/apps/mobile-app/ios/VaultStoreKit/VaultStore+Passkey.swift
+++ b/apps/mobile-app/ios/VaultStoreKit/VaultStore+Passkey.swift
@@ -35,8 +35,6 @@ extension VaultStore {
throw VaultStoreError.vaultNotUnlocked
}
- print("VaultStore+Passkey: Looking up passkey by credentialId: \(credentialId.base64EncodedString().prefix(20))...")
-
// The Passkeys.Id column is a string UUID (not a blob), so we need to convert the credentialId bytes to a UUID string.
// Use PasskeyHelper to convert the credentialId (Data) to a UUID string for lookup.
guard let credentialIdString = try? PasskeyHelper.bytesToGuid(credentialId) else {
@@ -50,12 +48,10 @@ extension VaultStore {
for row in try dbConn.prepare(query) {
if let passkey = try parsePasskeyRow(row) {
- print("VaultStore+Passkey: Found passkey - rpId=\(passkey.rpId), displayName=\(passkey.displayName), userId=\(passkey.userHandle?.base64EncodedString().prefix(20) ?? "(nil)")...")
return passkey
}
}
- print("VaultStore+Passkey: No passkey found with matching credentialId")
return nil
}
@@ -90,8 +86,6 @@ extension VaultStore {
throw VaultStoreError.vaultNotUnlocked
}
- print("VaultStore+Passkey: Looking up passkeys for rpId: \(rpId)")
-
let query = Self.passkeysTable
.filter(Self.colRpId == rpId)
.filter(Self.colIsDeleted == 0)
@@ -104,7 +98,6 @@ extension VaultStore {
}
}
- print("VaultStore+Passkey: Found \(passkeys.count) passkeys for rpId: \(rpId)")
return passkeys
}
@@ -117,8 +110,6 @@ extension VaultStore {
throw VaultStoreError.vaultNotUnlocked
}
- print("VaultStore+Passkey: Looking up passkeys with credential info for rpId: \(rpId), userName: \(userName ?? "nil")")
-
// Join passkeys with credentials and services to get display info
let passkeysTable = Table("Passkeys")
let credentialsTable = Table("Credentials")
@@ -159,7 +150,6 @@ extension VaultStore {
}
}
- print("VaultStore+Passkey: Found \(results.count) matching passkeys with credential info")
return results
}
@@ -454,8 +444,6 @@ extension VaultStore {
throw VaultStoreError.vaultNotUnlocked
}
- print("VaultStore+Passkey: Creating credential with passkey for rpId=\(rpId)")
-
let credentialId = passkey.parentCredentialId
let now = Date()
let timestamp = formatDateForDatabase(now)
@@ -492,8 +480,6 @@ extension VaultStore {
)
try dbConn.run(credentialInsert)
- print("VaultStore+Passkey: Created credential \(credentialId.uuidString)")
-
// Insert the passkey
try insertPasskey(passkey)
@@ -530,8 +516,6 @@ extension VaultStore {
throw VaultStoreError.vaultNotUnlocked
}
- print("VaultStore+Passkey: Inserting new passkey - id=\(passkey.id.uuidString), rpId=\(passkey.rpId)")
-
let insert = Self.passkeysTable.insert(
Self.colId <- passkey.id.uuidString,
Self.colCredentialId <- passkey.parentCredentialId.uuidString,
@@ -547,7 +531,6 @@ extension VaultStore {
)
try dbConn.run(insert)
- print("VaultStore+Passkey: Successfully inserted passkey")
}
/**
@@ -559,8 +542,6 @@ extension VaultStore {
throw VaultStoreError.vaultNotUnlocked
}
- print("VaultStore+Passkey: Replacing passkey \(oldPasskeyId.uuidString) with new passkey \(newPasskey.id.uuidString)")
-
// Get the old passkey to find its credential
let oldPasskeyQuery = Self.passkeysTable
.filter(Self.colId == oldPasskeyId.uuidString)
@@ -631,8 +612,6 @@ extension VaultStore {
)
try insertPasskey(updatedPasskey)
-
- print("VaultStore+Passkey: Successfully replaced passkey")
}
/**
diff --git a/apps/mobile-app/ios/VaultStoreKit/VaultStore+Query.swift b/apps/mobile-app/ios/VaultStoreKit/VaultStore+Query.swift
index 5794ca503..3888c0fcb 100644
--- a/apps/mobile-app/ios/VaultStoreKit/VaultStore+Query.swift
+++ b/apps/mobile-app/ios/VaultStoreKit/VaultStore+Query.swift
@@ -157,8 +157,6 @@ extension VaultStore {
throw NSError(domain: "VaultStore", code: 4, userInfo: [NSLocalizedDescriptionKey: "Database not initialized"])
}
- print("Executing get all credentials query..")
-
let query = """
WITH LatestPasswords AS (
SELECT
@@ -332,8 +330,6 @@ extension VaultStore {
result.append(credential)
}
- print("Found \(result.count) credentials")
-
return result
}
// swiftlint:enable function_body_length
diff --git a/apps/mobile-app/ios/VaultStoreKit/VaultStore+Sync.swift b/apps/mobile-app/ios/VaultStoreKit/VaultStore+Sync.swift
index abd47fe85..627e9c84c 100644
--- a/apps/mobile-app/ios/VaultStoreKit/VaultStore+Sync.swift
+++ b/apps/mobile-app/ios/VaultStoreKit/VaultStore+Sync.swift
@@ -104,7 +104,7 @@ extension VaultStore {
// Validate server version meets minimum requirement
guard VersionComparison.isServerVersionSupported(status.serverVersion) else {
- print("VaultStore: Server version \(status.serverVersion) does not meet minimum requirement \(AppConfig.minServerVersion)")
+ print("VaultStore: Server version \(status.serverVersion) does not meet minimum requirement \(AppInfo.minServerVersion)")
throw VaultSyncError.serverVersionNotSupported
}
diff --git a/apps/mobile-app/ios/VaultUI/Registration/Passkeys/PasskeyRegistrationView.swift b/apps/mobile-app/ios/VaultUI/Registration/Passkeys/PasskeyRegistrationView.swift
index e186b5a7c..091efbc3d 100644
--- a/apps/mobile-app/ios/VaultUI/Registration/Passkeys/PasskeyRegistrationView.swift
+++ b/apps/mobile-app/ios/VaultUI/Registration/Passkeys/PasskeyRegistrationView.swift
@@ -287,7 +287,6 @@ public class PasskeyRegistrationViewModel: ObservableObject {
}
// Trigger passkey creation in Swift
- print("PasskeyRegistration: Create passkey button clicked, replace mode: \(selectedPasskeyToReplace != nil)")
completionHandler(true)
}