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

fix: prefetch crash #1010

Merged
merged 1 commit into from
Aug 1, 2024
Merged

fix: prefetch crash #1010

merged 1 commit into from
Aug 1, 2024

Conversation

zibs
Copy link
Contributor

@zibs zibs commented Jul 30, 2024

Fixes #478

Description

it was possible that the issuer could be an empty string ('') which would indeed cause the app to crash, since our invariant check missed that.

This is a required field, and the docs mention it, and the user must supply it in order for the functionality to work, but in the case that it's missed or forgotten, this is better than hard crashing as it was.

Steps to verify

  • before fix, set issuer: '', and see app hard crash
  • after fix, app doesn't hard crash

Copy link

vercel bot commented Jul 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-app-auth ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 30, 2024 9:45pm

Copy link

changeset-bot bot commented Jul 30, 2024

🦋 Changeset detected

Latest commit: 3b15076

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-native-app-auth Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

it was possible that the issuer could be an empty string ('') which would indeed cause the app to crash, since our `invariant` check missed that.
fixes #478

Update index.js

Create short-lies-behave.md
@zibs zibs merged commit 438d512 into main Aug 1, 2024
3 checks passed
@zibs zibs deleted the fix/478-prefetch-crash branch August 1, 2024 19:49
@github-actions github-actions bot mentioned this pull request Aug 1, 2024
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

Successfully merging this pull request may close these issues.

[Android] App crash on prefetchConfiguration if issuer is missing.
2 participants