-
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
RN 0.59 and Cognito federated identity OAuth flow failure #3183
Comments
This is due to use of URLSearchParams that has been stripped to non-implemented shim in RN 0.59 + https://github.com/aws-amplify/amplify-js/blob/master/packages/auth/src/OAuth/OAuth.ts#L144 Workaround:
|
Thank you for the work-around @mkrn ! 😄 This will be very helpful for other users |
@mkrn thanks for posting that workaround. It looks like deleting the URLSearchParams from global causes other issues, even though it does allow auth to start working again. After implementing your workaround, did you see errors like the one below? If so, how did you work around it?
|
@mkrn @schellack I can confirm that updating the code with the polyfill and deleting the global results in the same |
If you monkey patch the |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
With newest version of react-native the OAuth flow with Cognito Federated Identity fails to sign in the user.
To Reproduce
Steps to reproduce the behavior:
withOAuth
HOC use props.facebookSignIn flow.Expected behavior
Expected the flow to work properly
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Sample code
You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.
The text was updated successfully, but these errors were encountered: