Closed THPubs closed 2 years ago
Hi @THPubs 👋,
I'm taking a looks at this issue and haven't been able to reproduce it - and each configuring and switching environments is working as expected.
Could you provide steps you took to setup oauth in detail?
One thing to note is each amplify environment will have a unique Hosted UI Endpoint that will contain the environment name that you would then provide to the auth provider.
Hi @THPubs, following up on this to see if you still need some help
I'll close this issue for now, but feel free to re-open if you still need assistance.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
My app have multiple environments (
dev
,staging
, andproduction
). I set up Google Sin-in in thedev
environment and everything works fine. But when switched to thestaging
environment, it breaks. Click on Google sign-in > Click on the google account or sign-in to the google account > Re-direct to the app > The user does not get signed-in. When I check the console, it shows the following error:I tried to sign in using another Google account, tried different Google client credentials, updated Amplify auth and went through all the settings. Still nothing worked. I then checked the cloud watch logs. Nothing...
Any idea what's happening?
Expected behavior
User to be signed in to the app without issue.
Reproduction steps
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