node-auth0 icon indicating copy to clipboard operation
node-auth0 copied to clipboard

verifySMSCode function not working

Open vlttnv opened this issue 7 years ago • 3 comments

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

vlttnv avatar Aug 27 '19 14:08 vlttnv

Do you get any logs in your auth0 tenant?

luisrudge avatar Aug 27 '19 18:08 luisrudge

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,
});

vlttnv avatar Aug 28 '19 08:08 vlttnv

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! 🙇‍♂️

stale[bot] avatar Nov 26 '19 09:11 stale[bot]