Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flutter_appauth] iOS app would crash when authorizationCode was nil #589

Open
kennethj opened this issue Jan 24, 2025 · 0 comments
Open

Comments

@kennethj
Copy link

iOS app would crash when authorizationCode was nil

Error message in Obj-C:

The operation couldn’t be completed. *** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: authorizationCode)

The exception is thrown here: https://github.com/MaikuB/flutter_appauth/blob/master/flutter_appauth/ios/Classes/AppAuthIOSAuthorization.m#L86-L89

This PR #588 prevents the app from crashing by catching the exception and sending it to the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant