-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
React Native email/password login broken in monorepo #13953
Comments
Hi @mikeislearning thanks for opening this issue. It sounds like that your project ended up have multiple versions / instances of the |
Hi there @HuiSF thank you for the quick response! I can confirm that no duplicate dependencies were produced |
@mikeislearning, can you share your |
Sure thing @cwomack , here are the dependencies: Monorepo root:
React App (works as expected):
React Native App (not working):
|
@mikeislearning Thanks for providing the |
@ashika112 No, the app doesn't employ a micro front end pattern, and the react and react native environments are entirely separate |
Hi @mikeislearning looking at your patch you are importing Can you provide your code that configures Amplify in your react-native app? Please also include all import statements. |
Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue. Thank you! |
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
Describe the bug
Our team is using a turbo-based monorepo with both a react web app and a react native mobile app, in addition to our node.js server.
When we trying logging in using email+password on the react web app, everything works as expected.
When we try the same login with the react-native mobile app, it is unable to find the configuration, with the error message:
Hope to hear from you!
Expected behavior
We would expected this to allow a user to login via amplify with an email + password using the react-native app
Reproduction steps
It seems like it'll be tough to reproduce without someone setting up a full turbo monorepo, so we do already have a fix for it with a patch we created using patch-package located at
<root>/patches/@aws-amplify+auth+6.5.3.patch
. Here's the code:Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
iOS and Android
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: