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

Add platform check for ConvexAuthProvider's storage #149

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

Zwyx
Copy link
Contributor

@Zwyx Zwyx commented Jan 2, 2025

Fixes #114

In Expo (React Native), providing storage={secureStorage} to ConvexAuthProvider makes the web version of the app crashes (see #114). Checking the platform and only assign secureStorage on Android and iOS fixes this issue.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

vercel bot commented Jan 2, 2025

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

Name Status Preview Updated (UTC)
convex-auth-docs ✅ Ready (Inspect) Visit Preview Jan 2, 2025 11:56am

@thomasballinger
Copy link
Contributor

Yeah this makes sense as the general recommendation, thanks for the fix!

@thomasballinger thomasballinger merged commit 757023d into get-convex:main Jan 3, 2025
3 checks passed
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.

_ExpoSecureStore.default.getValueWithKeyAsync is not a function
2 participants