Skip to content

Tokenify

Tokenify is a tool for getting your JWT token and other info.

Examples

Here is an example:

const prodigy = require("prodigy-api");

(async function() {
    let player = await prodigy.tokenify("username", "password"); // Get your login data.
    let token = player.token; // Get JWT token out of login data.
    console.log(token); // Log your JWT token to console.
})();

Parameters

Tokenify requires two parameters. These being the username and password of your account.

Each of these should be strings.

There are no keywords.

Output

Tokenify output is a dictionary following this schema:

{
    "$schema": "http://json-schema.org/schema#",
    "type": "object",
    "properties": {
        "objectID": {
            "type": "integer"
        },
        "curriculumOverride": {
            "type": "null"
        },
        "curriculumTreeID": {
            "type": "string"
        },
        "lastVisited": {
            "type": "string"
        },
        "registerDate": {
            "type": "string"
        },
        "classIDs": {
            "type": "array"
        },
        "ownerIDs": {
            "type": "array"
        },
        "primaryParentID": {
            "type": "null"
        },
        "isTowerTownEnabled": {
            "type": "boolean"
        },
        "placementTestID": {
            "type": "null"
        },
        "goalId": {
            "type": "null"
        },
        "gradeId": {
            "type": "string"
        },
        "grade": {
            "type": "integer"
        },
        "userID": {
            "type": "integer"
        },
        "usertype": {
            "type": "string"
        },
        "authToken": {
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "token": {
            "type": "string"
        }
    },
    "required": [
        "authToken",
        "classIDs",
        "curriculumOverride",
        "curriculumTreeID",
        "goalId",
        "grade",
        "gradeId",
        "isTowerTownEnabled",
        "lastVisited",
        "name",
        "objectID",
        "ownerIDs",
        "placementTestID",
        "primaryParentID",
        "registerDate",
        "token",
        "userID",
        "usertype"
    ]
}

Last update: 2021-08-02
Created: 2021-08-02