Prettify everything

This commit is contained in:
MICHAEL JACKSON
2018-02-17 18:00:56 -08:00
parent d6f2bc089a
commit 2e1f09e913
58 changed files with 1061 additions and 932 deletions

View File

@ -1,23 +1,23 @@
const AuthAPI = require("../server/AuthAPI")
const AuthAPI = require("../server/AuthAPI");
const scopes = {
blacklist: {
read: true
}
}
};
AuthAPI.createToken(scopes).then(
token => {
// Verify it, just to be sure.
AuthAPI.verifyToken(token).then(payload => {
console.log(token, "\n")
console.log(JSON.stringify(payload, null, 2), "\n")
console.log(AuthAPI.getPublicKey())
process.exit()
})
console.log(token, "\n");
console.log(JSON.stringify(payload, null, 2), "\n");
console.log(AuthAPI.getPublicKey());
process.exit();
});
},
error => {
console.error(error)
process.exit(1)
console.error(error);
process.exit(1);
}
)
);