With new version of aws-amplify issue with redirect signInWithRedirect method #14078
Open
3 tasks done
Labels
Auth
Related to Auth components/category
pending-community-response
Issue is pending a response from the author or community.
question
General question
React Native
React Native related issue
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
@aws-amplify/analytics: ^7.0.58 => 7.0.62
@aws-amplify/react-native: ^1.1.6 => 1.1.6
@aws-amplify/rtn-push-notification: ^1.2.31 => 1.2.31
@aws-amplify/rtn-web-browser: ^1.1.1 => 1.1.1
Describe the bug
I am currently using the latest version of aws-amplify. Previously, I was using the following versions:
My application includes an option for users to Sign In/Sign Up with Apple, using the custom provider
appleid.apple.com.
In the earlier version of aws-amplify, I was using theAuth.federatedSignIn
method, which worked perfectly.After updating to the latest version of aws-amplify, the
Auth.federatedSignIn
method is no longer available. Instead, there is a new method calledsignInWithRedirect
. However, when I implemented it, it didn't work as expected.When I call this method, a popup appears in the app with the message:
"App wants to use 'amazoncognito.com' to sign in."
It includes two buttons: "Cancel" and "Continue."
If I click "Cancel," the dialog closes.
If I click "Continue," it opens a webpage that displays an error.
This behavior is different from the previous version, where no popup appeared.
I have already configured my aws-config.json file with the following redirect URLs:
What can I do to resolve this issue?"
Expected behavior
Login should work
Reproduction steps
From iphone click on apple sign in and it do sign in success from apple and then call signInWithRedirect and it shows as above
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
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: