For the North American (En Masse), and European (Gameforge), TERA regions only.
This module is an updated alternative to meishuu/tera-auth-ticket with muti-region support.
const webClient = require('tera-auth-ticket');
const web = new webClient('(na, eu)', 'email', 'password', 'EUAccountName(optional)');
web.getLogin((err, data) => {
if (err) console.error(err)
else console.log(data) // {name: accountName, ticket: ticket}
})
Data can be used in C_LOGIN_ARBITER
to login to the game servers.
EUAccountName
is an optional parameter for Gameforge accounts with more than one tera account. You can specify which account you would like to use by setting this to the account's display name.