From 0498cb3121d2c04b7cf11b30040e75cdb99f4b2b Mon Sep 17 00:00:00 2001
From: Dariusz Rybicki <dariusz@elixxir.io>
Date: Fri, 2 Sep 2022 19:21:26 +0200
Subject: [PATCH] Add remove function to PasswordStorage

---
 Sources/XXClient/Helpers/PasswordStorage.swift | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Sources/XXClient/Helpers/PasswordStorage.swift b/Sources/XXClient/Helpers/PasswordStorage.swift
index bf84f6dd..a1c36884 100644
--- a/Sources/XXClient/Helpers/PasswordStorage.swift
+++ b/Sources/XXClient/Helpers/PasswordStorage.swift
@@ -8,19 +8,23 @@ public struct PasswordStorage {
 
   public init(
     save: @escaping (Data) throws -> Void,
-    load: @escaping () throws -> Data
+    load: @escaping () throws -> Data,
+    remove: @escaping () throws -> Void
   ) {
     self.save = save
     self.load = load
+    self.remove = remove
   }
 
   public var save: (Data) throws -> Void
   public var load: () throws -> Data
+  public var remove: () throws -> Void
 }
 
 extension PasswordStorage {
   public static let unimplemented = PasswordStorage(
     save: XCTUnimplemented("\(Self.self).save"),
-    load: XCTUnimplemented("\(Self.self).load")
+    load: XCTUnimplemented("\(Self.self).load"),
+    remove: XCTUnimplemented("\(Self.self).remove")
   )
 }
-- 
GitLab