Skip to content

Commit e399d67

Browse files
jshierWidcket
andauthored
Fix build failure with SimpleKeychain 0.11.0. (#354)
* Fix build failure with SimpleKeychain 0.11.0. * Trigger new CI build * Unwrap optional * Extract logic to private method * Add iOS 9 test case * Revert changes Co-authored-by: Rita Zerrizuela <[email protected]>
1 parent 31a5ceb commit e399d67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Auth0/JWK+RSA.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extension JWK {
3737
let tag = "com.auth0.tmp.RSAPublicKey"
3838
let keychain = A0SimpleKeychain()
3939
guard keychain.setRSAPublicKey(data: encodedKey, forKey: tag) else { return nil }
40-
return keychain.keyRefOfRSAKey(withTag: tag).takeRetainedValue()
40+
return keychain.keyRefOfRSAKey(withTag: tag)?.takeRetainedValue()
4141
}
4242

4343
private func encodeRSAPublicKey(modulus: [UInt8], exponent: [UInt8]) -> Data {

Cartfile.resolved

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ github "AliSoftware/OHHTTPStubs" "8.0.0"
22
github "Quick/Nimble" "v8.0.5"
33
github "Quick/Quick" "v2.2.0"
44
github "auth0/JWTDecode.swift" "2.4.1"
5-
github "auth0/SimpleKeychain" "0.9.0"
5+
github "auth0/SimpleKeychain" "0.11.0"

0 commit comments

Comments
 (0)