POST
/
v1
/
account
/
two-factor
Authorization
const { setToken, Account } = require('@evecloud/sdk');

setToken('TOKEN');

Account.tfa.create().then((data) => {
    console.log(data);
}).catch((error) => {
    console.log(error);
});
{
  "expires_at": "2021-01-01T00:00:00.000Z",
  "qrcode": "QR_CODE",
  "secret": "JBSWY3DPEHPK3PXP"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json
expires_at
string

The two-factor authentication expiration date.

qrcode
string

The two-factor authentication secret.

secret
string

The two-factor authentication secret.