ruimarinho / authy-client

A complete Authy client with support for TOTP, OneTouch, Phone Verification and Phone Intelligence APIs
122 stars 27 forks source link

Validation Failed VerifyToken #56

Closed DGINXREAL closed 5 years ago

DGINXREAL commented 5 years ago

I have a Problem with the authy-client for nodejs.

I become this error

errstack

const Client = require('authy-client').Client;

const client = new Client({key: Akey});

client.verifyToken({authyID: res[0].authyID, token: authKey})
                    .then(function(response){
                        console.log('OK');
                    }).catch(function(error){
                        console.log('Failed')
                        throw error;
                });
ruimarinho commented 5 years ago

The parameter name is authyId, not authyID.