Closed Catazza closed 2 months ago
Hello, @Catazza 👋. We'll close this issue as a duplicate of #13587 since that was transferred from the UI repo. We can reference anything from this issue if needed, but we'll follow up with further on the other issue. Thanks!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
Amplify Gen 2 (Preview)
Environment information
Describe the bug
I had already opened this issue in Amplify-UI originally, as I thought it was a bug with the UI component. However, upon further exploration we noticed it's a general issue.
In particular, auth functions such as signIn don't work in the release (production) versions of the app. We are using expo. In the development builds, everything works as expected. When I create a release for example with
npx expo run:ios --configuration Release
the functions stop working (clicking on the login button nothing happens). I have checked AWS cloudtrail, and I do see that Cognito indeed receives the requests, and answers successfully. I have tried both the SRP and PASSWORD. Auth flows, but neither works. The issue happens both on iOS and Android.Expected behavior
Login function should work the same in release as in the development builds
Reproduction steps
npx expo run:ios --configuration Release
Code Snippet
root component:
index.tsx at root
intro.tsx
button component:
Log output
aws-exports.js
aws_outputs.js file:
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
package.json