Two-Factor Authentication
Enable Two-Factor Authentication
Enables two-factor authentication
PUT
/
v1
/
account
/
two-factor
Authorization
Body
const { setToken, Account } = require('@evecloud/sdk');
setToken('TOKEN');
Account.tfa.enable('CODE').then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
{
"recovery": [
"JBSWY3DPEHPK3PXP",
"JBSWY3DPEHPK3PXP"
]
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
code
string
The two-factor authentication code.
Response
200 - application/json
recovery
string[]
The two-factor authentication recovery codes.
Was this page helpful?
const { setToken, Account } = require('@evecloud/sdk');
setToken('TOKEN');
Account.tfa.enable('CODE').then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
{
"recovery": [
"JBSWY3DPEHPK3PXP",
"JBSWY3DPEHPK3PXP"
]
}