This commit is contained in:
MICHAEL JACKSON
2017-11-25 21:19:55 -08:00
parent 758b420297
commit 51f3bca3fb
13 changed files with 476 additions and 448 deletions

View File

@ -1,4 +1,4 @@
const AuthAPI = require('../server/AuthAPI')
const AuthAPI = require("../server/AuthAPI")
const scopes = {
blacklist: {
@ -10,8 +10,8 @@ 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(token, "\n")
console.log(JSON.stringify(payload, null, 2), "\n")
console.log(AuthAPI.getPublicKey())
process.exit()
})