feat(auth): allow to force login on idp for exiting user
Description of changes
- add a boolean to input options when calling signInWithRedirect
- forces the account selector screen in idp
- requires that the managed branding (and not hosted ui classic) to be set in the user pool
Issue #, if available
https://github.com/aws-amplify/amplify-js/issues/4044
Description of how you validated changes
Checklist
- [ ] PR description included
- [ ]
yarn testpasses - [x] Unit Tests are changed or added
- [ ] Relevant documentation is changed or added (and PR referenced)
Checklist for repo maintainers
- [ ] Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
- [ ] New source file paths included in this PR have been added to CODEOWNERS, if appropriate
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
@nadetastic Is it not possible to send manually which prompt we want to display, in my case I need to use the select_account, so I can show the UI to pick the accounts, I think none, will do a silent login. so if one account is already cached, it will login immediately with that one.
Hey team, any update for this commit? We need this feature badly.
All updates will be moved to this newly created PR: https://github.com/aws-amplify/amplify-js/pull/14464