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

Emit authorization_error event on passwordless error #1784

Merged
merged 4 commits into from
Jan 21, 2020

Conversation

stevehobbsdev
Copy link
Contributor

@stevehobbsdev stevehobbsdev commented Jan 20, 2020

Changes

With this PR, the authorization_error event is now emitted when an error occurs while submitting a code in the passwordless flow.

References

Originated from an internal service desk ticket.1

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language

Checklist

@stevehobbsdev stevehobbsdev added this to the vNext milestone Jan 20, 2020
@stevehobbsdev stevehobbsdev requested a review from a team January 20, 2020 12:14
lbalmaceda
lbalmaceda previously approved these changes Jan 20, 2020
Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be documented somewhere?? Maybe on the readme?

describe('on webApi.passwordlessVerify() callback', () => {
it('formats error when there is an error ', () => {
actions.logIn('id');
describe('when there is an eror', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo. If you decide to change it, you'll need to regenerate the snapshots

Suggested change
describe('when there is an eror', () => {
describe('when there is an error', () => {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've fixed the typo locally instead of merging the suggestion.

The event is already documented, it just wasn't being emitted in one of the places it should have been.

@stevehobbsdev stevehobbsdev merged commit b0788f6 into master Jan 21, 2020
@stevehobbsdev stevehobbsdev deleted the fix/authorization_error branch January 22, 2020 11:29
jfromaniello pushed a commit to jfromaniello/auth0-lock that referenced this pull request Mar 5, 2020
* Emit authorization_error event on passwordless error

* Removed unneccessary import

* Fixed typo in test name, regenerated snapshots

* Regenerated lockfile
jfromaniello pushed a commit to jfromaniello/auth0-lock that referenced this pull request Jul 23, 2020
* Emit authorization_error event on passwordless error

* Removed unneccessary import

* Fixed typo in test name, regenerated snapshots

* Regenerated lockfile
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