Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

Commit

Permalink
add send-phone-message treggerId for MFA SMS hook. (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikasjayaram authored May 2, 2020
1 parent 95f76a1 commit c245a32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth0/handlers/hooks.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import DefaultHandler from './default';
import constants from '../../constants';

const ALLOWED_TRIGGER_IDS = [ 'credentials-exchange', 'pre-user-registration', 'post-user-registration', 'post-change-password' ];
const ALLOWED_TRIGGER_IDS = [ 'credentials-exchange', 'pre-user-registration', 'post-user-registration', 'post-change-password', 'send-phone-message' ];

export const excludeSchema = {
type: 'array',
Expand Down
6 changes: 6 additions & 0 deletions tests/auth0/handlers/hooks.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ describe('#hooks handler', () => {
code: 'code',
active: false,
triggerId: 'post-change-password'
},
{
name: 'Hook-7',
code: 'code',
active: false,
triggerId: 'send-phone-message'
}
];

Expand Down

0 comments on commit c245a32

Please sign in to comment.