From f4e932d4ae0b59b6f6757be251af249a61b9f93f Mon Sep 17 00:00:00 2001 From: Dejan Skledar Date: Thu, 29 Aug 2024 15:04:43 +0200 Subject: [PATCH] Use SHA256 for custom nonce as well (#32) --- Sources/Apple/AppleAuthenticator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Apple/AppleAuthenticator.swift b/Sources/Apple/AppleAuthenticator.swift index 37901de..20dd83a 100644 --- a/Sources/Apple/AppleAuthenticator.swift +++ b/Sources/Apple/AppleAuthenticator.swift @@ -147,7 +147,7 @@ private extension AppleAuthenticator { } request.nonce = generateNonceString(length: length).sha256 case .custom(let value): - request.nonce = value + request.nonce = value.sha256 case .none: break }