Open gauravrana0-nagarro opened 4 months ago
Hello, @gauravrana0-nagarro 👋. Are you trying to use OAuth with this iOS app? It looks like you might be missing the @aws-amplify/rtn-web-browser
package if so, which you can see the docs for here. Also, are you using the Authenticator or just the regular Auth API's for signing in to your federated provider?
Any sample code tied to your authentication flow might be helpful as well. Thanks!
Hello @cwomack , we are using OAuth in v4 in a react native project. But it is not working after upgrading to v6. If I don't upgrade v4 to v6 will v4 work with the react-native version 0.73 ?
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
Other
Environment information
Describe the bug
While upgrading my react-native project from 0.68.2 to 0.73 I upgraded aws-amplify version also from v4 t v6 as v4 was working fine with iOS RN version 0.73 but was giving error in android. I removed amazon-cognito-identity-js package as it was giving duplicate code error in iOS. After making this change and installing the lastest aws packages my code now is now stuck at line "Amplify.configure({ Auth: LoginClient.auth });"
Expected behavior
It should authenticate and proceed.
Reproduction steps
1 Installed npm install @aws-amplify/ui-react-native aws-amplify @aws-amplify/react-native react-native-safe-area-context @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values
Code Snippet
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