This commit is contained in:
Max Goedjen 2021-11-07 17:33:43 -08:00
parent 54a4d2f9d5
commit 7219bbc52c
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ extension SecureEnclave {
init(secret: Secret, context: LAContext, duration: TimeInterval) {
self.secret = secret
self.context = context
let durationInNanoSeconds = Measurement(value: duration, unit: UnitDuration.seconds).converted(to: UnitDuration.nanoseconds).value
let durationInNanoSeconds = Measurement(value: duration, unit: UnitDuration.seconds).converted(to: .nanoseconds).value
self.expiration = clock_gettime_nsec_np(CLOCK_MONOTONIC) + UInt64(durationInNanoSeconds)
}