Hub 'auth' channel 'signIn' event is not invoked if account has temporary password.
See original GitHub issueDescribe the bug The ‘signIn’ event is not invoked on the ‘auth’ channel when using Hub.listen(‘auth’, () => { }) if the user account being used to sign in has the ‘FORCE_CHANGE_PASSWORD’ status
To Reproduce Steps to reproduce the behavior:
- Register a new listener:
Hub.listen('auth', data => {console.log(data.payload.event})
- Create a new user using the Amazon Cognito Admin panel; notice this new user’s account status is ‘FORCE_CHANGE_PASSWORD’
- Auth.signIn() will not invoke the log if the admin-created user is used
Expected behavior The event ‘signIn’ should be invoked on the ‘auth’ listener channel
Versions Amplify version 4.32.0 Node version 14.4.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Authentication - Password & user management - JavaScript
It will throw an error if there is no user logged in. This method should be called after the Auth module is configured...
Read more >Amplify Hub.listen immediately calls signOut after signIn when ...
I have SSO working fine, however, when trying to put the cognito user object in my authentication context, Hub.listen calls a signout and ......
Read more >What is SSO? | How single sign-on works - Cloudflare
With SSO, a user only has to enter their login credentials (username, password, etc.) one time on a single page to access all...
Read more >Service accounts | IAM Documentation | Google Cloud
Service accounts do not have passwords, and cannot log in via browsers or cookies. ... If you share Google Workspace assets, like docs...
Read more >Login Security and Help | American Express® Savings Account
An email will be sent within 10 minutes with the subject line “Temporary code request for account access”. If you do not see...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, good catch @wei! That seems like an appropriate update to make 👍
This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels or Discussions for those types of questions.