You can also get the token with node.js by making a request to https://api.wasteof.money/session with

json: {
    "username": (your username)
    "password": (your password)
} 

it works like that, i am using it with got , a node.js library for making requests with javascript

so this is how i made it (you make a post request)

import got from "got";

const { token } = await got
  .post("https://api.wasteof.money/session", {
    json: {
      username: "account",
      password: "password",
    },
  })
  .json();
View all comments