AppAuth-iOS icon indicating copy to clipboard operation
AppAuth-iOS copied to clipboard

Update OIDRedirectHTTPHandler.h

Open frogcjn opened this issue 1 year ago • 0 comments

fix macOS startHTTPListener memory crash if there is an error and return nil URL

related issue: https://github.com/openid/AppAuth-iOS/issues/107 When there is a starting error happened, the Swift call to startHTTPListener will crash, because of the return URL is nullable but the interface announce it nonnull.

The right behavior should throw an SwiftError. after this fix, the Swift call to startHTTPListener will be right to handle the error.

frogcjn avatar Feb 17 '24 12:02 frogcjn