Closed Shubhagj closed 1 month ago
@robbevan @calavera @dbalmain @undefobj can you help with this?
Hello, @Shubhagj 👋. It looks like in the dependencies you provided within the "system information" above, you have the following scoped packages that may cause issues with the Amplify singleton:
@aws-amplify/auth: ^6.3.14 => 6.3.14
@aws-amplify/core: ^6.3.9 => 6.3.10
@aws-amplify/ui-react: ^6.1.14 => 6.1.14
Can you remove these and see if it changes the behavior that you're experiencing? In addition, do you see any error messages or network logs that you can share? Finally, can you confirm that the redirectSignIn URI match what you have specified in your config?
Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue.
Thank you!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
Amplify CLI
Environment information
Describe the bug
Prerequisites: JavaScript Framework: React Native Backend Amplify CLI Java Version (JDK): 17.0.11 React Native Version: ^0.72.4 Gradle Version: 8.0.1 or 8.0.2
Describe the bug:
I have installed the AWS CLI and configured AWS Amplify, as well as set up Google authentication. After running amplify push, I received the hosted UI endpoint URL in the format https:///login?response_type=code&client_id=&redirect_uri=myapp://
Upon using this hosted UI endpoint, I was able to see the Google login page.
After entering the credentials (email and password) the user is successfully login, user registered in the backend Cognito user pool. However, after returning to the app's login screen, I want the user to be redirected to the home screen.
To achieve this, I added an intent filter in the AndroidManifest.xml file. Please let me know how to handle the redirect correctly.
and this also
Expected behavior
after user login successfully redirect to home screen
Reproduction steps
Code Snippet
Log output
aws-exports.js
const awsmobile = { "Auth": { "aws_project_region": "ap-south-1", "aws_cognito_identity_pool_id": "ap-south-1xxxxxxxxxx", "aws_cognito_region": "ap-south-1", "aws_user_pools_id": "xxxxxxx", "aws_user_pools_web_client_id": "xxxxxxxxx", "oauth": { "domain": "xxxxxx", "scope": [ "phone", "email", "openid", "profile", "aws.cognito.signin.user.admin" ], "redirectSignIn": "myapp://", even tried the (myapp://Home) "redirectSignOut": "myapp://", even tried the (myapp://Home) "responseType": "code" }, "federationTarget": "COGNITO_USER_POOLS", "aws_cognito_username_attributes": [ "EMAIL" ], "aws_cognito_social_providers": [ "GOOGLE" ], "aws_cognito_signup_attributes": [ "EMAIL" ], "aws_cognito_mfa_configuration": "OFF", "aws_cognito_mfa_types": [ "SMS" ], "aws_cognito_password_protection_settings": { "passwordPolicyMinLength": 8, "passwordPolicyCharacters": [] }, "aws_cognito_verification_mechanisms": [ "EMAIL" ] }};
export default awsmobile;
Manual configuration
No response
Additional configuration
No response
Mobile Device
android
Mobile Operating System
No response
Mobile Browser
chrome
Mobile Browser Version
No response
Additional information and screenshots
No response