Describe the bug
Neither:
a) using the hosted UI and signing in with facebook/google
https://my-app.auth.auth.us-west-2.amazoncognito.com/login?(...)
b) using the oauth login
https://my-app.auth.auth.us-west-2.amazoncognito.com/oauth2/authorize?(...)
has the user confirm / continue, by presenting them with the common view found in most apps.
Approach b) has no way to switch to a different account after a user logs in with one, and are stuck. Both approaches will throw an error if a user removes access from the fb/google allowed apps, when you expect them to be re-prompted to continue and allow access.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If a user is logged in, provide the identity provider page that allows users to "Continue" as the currently signed in account, or to switch accounts.
If a user revokes permissions, show the same page, re-instilling them.
Screenshots

Smartphone (please complete the following information):
Hello, wanted to check in on this issue @powerful23
@VicFrolov will talk to the Cognito team.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.
I think this is still a problem. Auth.signOut() only signs out from Cognito, but not from the federated provider (Google in this case). So when you try to login again (in my case, using Auth.federatedSignIn({ .provider: 'Google' })) it will automatically bypass Google's account selection/login and directly use the existing session.
One suboptimal solution to this is to also sign out from Google. You can accomplish this by making a GET request to https://accounts.google.com/logout. This way, a subsequent federatedSignIn will need to go through the Google login screen.
But, the ideal solution in my opinion is to enable passing the prompt query param when issuing the code flow. This way, when you know you are signed out, you could pass prompt=select_account and you will go through the google login screen even when you are still logged in in Google.
Can you please reopen this? It seems @powerful23 never got back with a Cognito team answer about this and it was just automatically closed
+1 would like to have a fix of this as well.
+2
Please reopen this ticket as this is still an issue
Most helpful comment
I think this is still a problem.
Auth.signOut()only signs out from Cognito, but not from the federated provider (Google in this case). So when you try to login again (in my case, usingAuth.federatedSignIn({ .provider: 'Google' })) it will automatically bypass Google's account selection/login and directly use the existing session.One suboptimal solution to this is to also sign out from Google. You can accomplish this by making a GET request to
https://accounts.google.com/logout. This way, a subsequent federatedSignIn will need to go through the Google login screen.But, the ideal solution in my opinion is to enable passing the
promptquery param when issuing the code flow. This way, when you know you are signed out, you could passprompt=select_accountand you will go through the google login screen even when you are still logged in in Google.Can you please reopen this? It seems @powerful23 never got back with a Cognito team answer about this and it was just automatically closed