node-testrail-api icon indicating copy to clipboard operation
node-testrail-api copied to clipboard

Missing Support to Auth Token

Open djom202 opened this issue 5 years ago • 1 comments

Actually into the TestRails Api we can use a token instead of username/password, so I've a token for that and in this repo I can't found any way to use it. Please add support for this kind of tokens. Thanks.

djom202 avatar Sep 09 '19 19:09 djom202

Actually into the TestRails Api we can use a token instead of username/password, so I've a token for that and in this repo I can't found any way to use it. Please add support for this kind of tokens. Thanks.

You can use your token instead of your password.

const testrail = new Testrail({
    host: `https://${your_domain}.testrail.io`,
    user: `${your_email}`,
    password: `${tour_token_aka_api_key}`
});

sergeyblohin avatar Mar 30 '20 10:03 sergeyblohin