oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1import Foundation
2
3/// Saved only in the Keychain. The random ID is public routing data, while
4/// credential identity and the Oficina session hash bind it to one sign-in.
5public struct NotificationSelection: Codable, Equatable, Sendable {
6 static let key = "notification.selection"
7 public let id: String
8 public let origin: URL
9 public let person: String
10 let credential: String
11 let sessionHash: String?
12 func matches(_ account: DeviceAccount) -> Bool {
13 origin == account.origin && person == account.address && credential == account.credential?.id && sessionHash == account.oficinaSessionHash
14 }
15}
16