Download this file
| 1 | import Foundation |
| 2 | |
| 3 | public struct NativeAccount: Codable, Identifiable, Hashable, Sendable { |
| 4 | public let id: String |
| 5 | public let origin: URL |
| 6 | public let name: String |
| 7 | // The Keychain lookup binds the UUID to its canonical origin. Altering the |
| 8 | // display metadata cannot redirect an existing credential to another server. |
| 9 | var credentialKey: String { "account:\(id)|\(origin.absoluteString)" } |
| 10 | } |
| 11 | |