rastrillo / native Public

Clone
git clone https://amadan.net/rastrillo/native

Plain git — no account needed to clone.

Download

Download this file

1import Foundation
2
3public 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