diff --git a/Eatery Blue/Auth/KeychainAccess.swift b/Eatery Blue/Auth/KeychainAccess.swift index 35d3ad2..6497a5f 100644 --- a/Eatery Blue/Auth/KeychainAccess.swift +++ b/Eatery Blue/Auth/KeychainAccess.swift @@ -35,10 +35,8 @@ class KeychainAccess { kSecAttrAccount as String: account ] - Task { - let status = SecItemDelete(query as CFDictionary) - guard status == errSecSuccess || status == errSecItemNotFound else { return } - } + let status = SecItemDelete(query as CFDictionary) + guard status == errSecSuccess || status == errSecItemNotFound else { return } } /// Returns token under account if it exists, nil otherwise