-
Notifications
You must be signed in to change notification settings - Fork 555
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
Conversation
There was a problem hiding this 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', () => { |
There was a problem hiding this comment.
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
describe('when there is an eror', () => { | |
describe('when there is an error', () => { |
There was a problem hiding this comment.
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.
* Emit authorization_error event on passwordless error * Removed unneccessary import * Fixed typo in test name, regenerated snapshots * Regenerated lockfile
* Emit authorization_error event on passwordless error * Removed unneccessary import * Fixed typo in test name, regenerated snapshots * Regenerated lockfile
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
Checklist