Not able to login after upgrading to v6 from v4 #13261
Labels
Auth
Related to Auth components/category
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
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
2. cd ios && pod install
3. npm start
4. npx react-native run-ios. or npx react-native run-android
the app is stuck on login screen
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
The text was updated successfully, but these errors were encountered: