Authentication

This library requires you to authenticate to G-PORTAL to interact with your Rust Console community server(s), so this step is mandatory!

It is important to call the "init()" method after creating a new class instance as this is the method which processes the authentication and connects to G-PORTAL!

Authenticating

Don't worry! Your GPORTAL credentials are not stored and are only accessible in your own code. Your credentials are used to get the initial set of authentication tokens from GPORTAL.

import { RCEManager, LogLevel } from "rce.js";

const rce = new RCEManager();
await rce.init({
    username: "", // Your GPORTAL email address
    password: "" // Your GPORTAL password
}, {
    level: LogLevel.Info,
    file: "rce.log"
});

Last updated