bcgov / mobile-authentication-ios

Mobile authentication for iOS
Apache License 2.0
2 stars 3 forks source link

Revert overload #2

Closed jleach closed 6 years ago

jleach commented 6 years ago

I think adding the operator overloads isn't the best way to check for specific errors. Better to use code like this:

if let error = error as? AuthenticationError, case .expired = error { }