verifySMSCode function not working
Description
Calling the verifySMSCode function with username and password as a phone number and verification code does not work end returns the following non-descriptive error.
[1566914071399] ERROR (APIError/421 on 9713a1ee2239): {}
api_1 | APIError: {}
api_1 | at /app/node_modules/rest-facade/src/Client.js:386:27
api_1 | at Request.callback (/app/node_modules/superagent/lib/node/index.js:728:3)
api_1 | at IncomingMessage.parser (/app/node_modules/superagent/lib/node/index.js:916:18)
api_1 | at IncomingMessage.emit (events.js:194:15)
api_1 | at IncomingMessage.EventEmitter.emit (domain.js:441:20)
api_1 | at endReadableNT (_stream_readable.js:1125:12)
api_1 | at process._tickCallback (internal/process/next_tick.js:63:19)
- Version of the node-auth0 used: 2.19.0
Do you get any logs in your auth0 tenant?
No, just one for requesting the code. Here is a code snippet of the verification:
const client = await Auth0Service.initAuthenticationClient();
const token = await client.verifySMSCode({
username: creds.username,
password: creds.password,
});
return token;
where initAuthenticationClient is:
return new AuthenticationClient({
domain: process.env.AUTH_MANAGEMENT_DOMAIN,
clientId: process.env.AUTH_MANAGEMENT_CLIENT,
clientSecret: process.env.AUTH_MANAGEMENT_CLIENT_SECRET,
});
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️