[ad_1]
I’m attempting so as to add Sign up With Apple to my SwiftUI app with Firebase Authentication and am getting an error with the supplied sha256() perform. I’ve referenced many articles and movies and haven’t come throughout this error wherever else:
“Argument kind ‘String.UTF8View’ doesn’t conform to anticipated kind ‘Decoder’
enter picture description right here
I’m utilizing XCode model 14.3.1 with iOS Minimal Deployment 16.1 chosen.
That is the perform supplied by Firebase from right here:
personal func sha256(_ enter: String) -> String {
let inputData = Information(enter.utf8)
let hashedData = SHA256.hash(information: inputData)
let hashString = hashedData.compactMap {
return String(format: "%02x", $0)
}.joined()
return hashString
}
let inputData = (Information.enter.utf8) is throwing the error.
Any assistance is appreciated
[ad_2]