API
Usage with JavaScript
Installation
npm install azuriom-authExample
import { AuthClient } from 'azuriom-auth'
async function login(email, password) {
const client = new AuthClient('https://rplands.royolands.com/ru-ru/home')
let result = await client.login(email, password)
if (result.status === 'pending' && result.requires2fa) {
const twoFactorCode = '' // IMPORTANT: Replace with the 2FA user temporary code
result = await client.login(email, password, twoFactorCode)
}
if (result.status !== 'success') {
throw 'Unexpected result: ' + JSON.stringify(result)
}
return result
}Endpoints
Field
Description
Field
Description
Field
Description
Last updated