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

[App Check] Add strict nil token / error handling in App Attest service #11645

Closed
wants to merge 1 commit into from

Conversation

andrewheard
Copy link
Contributor

Added checks / handling to ensure that callbacks in App Check's App Attest service are always called with a token or an error (they must not both be nil).

#no-changelog

[self randomChallengeFromResponseBody:response.HTTPBody
error:&error];

return randomChallenge ?: error;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find. This syntax probably opens the door for nil, nil scenarios.

@paulb777
Copy link
Member

Please close, merge, or comment. We plan to close stale PRs on November 28, 2023.

@andrewheard
Copy link
Contributor Author

Closing. If we decide to implement this in the future it'll need to be in https://github.com/google/app-check.

@andrewheard andrewheard deleted the ah/appcheck-errors branch November 14, 2023 15:55
@firebase firebase locked and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants