Prettify
This commit is contained in:
parent
bade9a8d28
commit
4c5e20841f
@ -1,4 +1,4 @@
|
|||||||
const AuthAPI = require("../server/AuthAPI");
|
const AuthAPI = require('../server/AuthAPI');
|
||||||
|
|
||||||
const scopes = {
|
const scopes = {
|
||||||
blacklist: {
|
blacklist: {
|
||||||
@ -10,8 +10,8 @@ AuthAPI.createToken(scopes).then(
|
|||||||
token => {
|
token => {
|
||||||
// Verify it, just to be sure.
|
// Verify it, just to be sure.
|
||||||
AuthAPI.verifyToken(token).then(payload => {
|
AuthAPI.verifyToken(token).then(payload => {
|
||||||
console.log(token, "\n");
|
console.log(token, '\n');
|
||||||
console.log(JSON.stringify(payload, null, 2), "\n");
|
console.log(JSON.stringify(payload, null, 2), '\n');
|
||||||
console.log(AuthAPI.getPublicKey());
|
console.log(AuthAPI.getPublicKey());
|
||||||
process.exit();
|
process.exit();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user