2020-11-01 08:54:59 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
// Modules from file
|
|
|
|
const { getF95Token } = require("../network-helper.js");
|
|
|
|
|
|
|
|
class Credentials {
|
|
|
|
constructor(username, password) {
|
|
|
|
this.username = username;
|
|
|
|
this.password = password;
|
2020-11-01 13:56:07 +00:00
|
|
|
this.token = null;
|
2020-11-01 08:54:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
async fetchToken() {
|
|
|
|
this.token = await getF95Token();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Credentials;
|