Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Fix build failure with SimpleKeychain 0.11.0. (auth0#354)
Browse files Browse the repository at this point in the history
* 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 <zeta@widcket.com>
  • Loading branch information
2 people authored and sam-w committed Mar 11, 2020
1 parent 7a02743 commit d4d98db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Auth0/JWK+RSA.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extension JWK {
let tag = "com.auth0.tmp.RSAPublicKey"
let keychain = A0SimpleKeychain()
guard keychain.setRSAPublicKey(data: encodedKey, forKey: tag) else { return nil }
return keychain.keyRefOfRSAKey(withTag: tag).takeRetainedValue()
return keychain.keyRefOfRSAKey(withTag: tag)?.takeRetainedValue()
}

private func encodeRSAPublicKey(modulus: [UInt8], exponent: [UInt8]) -> Data {
Expand Down
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ github "AliSoftware/OHHTTPStubs" "8.0.0"
github "Quick/Nimble" "v8.0.5"
github "Quick/Quick" "v2.2.0"
github "auth0/JWTDecode.swift" "2.4.1"
github "auth0/SimpleKeychain" "0.9.0"
github "auth0/SimpleKeychain" "0.11.0"

0 comments on commit d4d98db

Please sign in to comment.