const flarum = require('package');
const Flarum = new flarum('https://https://discuss.flarum.org/', true); // Flarum site link || Debug mode
const FlarumLogin = await Flarum.login('username/email', 'password');
console.log(FlarumLogin); // This will throw the token + id
The two objects get stored for the session, but is there also a documentation of all api routes existing? For example getting user data?