Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix send sms error event #1856

Merged
merged 5 commits into from
May 7, 2020
Merged

Conversation

blankg
Copy link
Contributor

@blankg blankg commented Apr 30, 2020

Changes

In the. passwordless sms authentication when there is an error in the sendSms method there is currently no event emitted which the client can listen on and react upon (for example - In our case we would like to report this to our analytics and get a better understanding of users drop in our login funnel).
The fix is in the connection/passwordless/actions.js class to emit AuthorizationErrorEvent.

Testing

Passwordless.actions test is updated to check that AuthorizationError event is emitted.

Checklist

When sendSms has an error there should be an event fired so clients can listen to and react upon it.
Test emit authorization_error on sendSms error
@blankg blankg requested a review from a team April 30, 2020 19:12
@stevehobbsdev stevehobbsdev added this to the vNext milestone May 7, 2020
@stevehobbsdev
Copy link
Contributor

Thanks @blankg!

@stevehobbsdev stevehobbsdev merged commit 1458e5a into auth0:master May 7, 2020
davidpatrick pushed a commit to davidpatrick/lock that referenced this pull request Jun 12, 2020
* Fix sendSmsError to emit AuthorizationErrorEvent

When sendSms has an error there should be an event fired so clients can listen to and react upon it.

* Update passwordless actions test

Test emit authorization_error on sendSms error

* fix snapshot test

Co-authored-by: Steve Hobbs <steve.hobbs@auth0.com>
jfromaniello pushed a commit to jfromaniello/auth0-lock that referenced this pull request Jul 23, 2020
* Fix sendSmsError to emit AuthorizationErrorEvent

When sendSms has an error there should be an event fired so clients can listen to and react upon it.

* Update passwordless actions test

Test emit authorization_error on sendSms error

* fix snapshot test

Co-authored-by: Steve Hobbs <steve.hobbs@auth0.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants