diff --git a/server/AuthAPI.js b/server/AuthAPI.js index 3fd1af1..1fd2064 100644 --- a/server/AuthAPI.js +++ b/server/AuthAPI.js @@ -90,14 +90,9 @@ function removeAllRevokedTokens() { }); } -function getPublicKey() { - return secretKey.public; -} - module.exports = { createToken, verifyToken, revokeToken, - removeAllRevokedTokens, - getPublicKey + removeAllRevokedTokens }; diff --git a/server/actions/showPublicKey.js b/server/actions/showPublicKey.js index d5dd5b5..0e16b41 100644 --- a/server/actions/showPublicKey.js +++ b/server/actions/showPublicKey.js @@ -1,7 +1,7 @@ -const AuthAPI = require("../AuthAPI"); +const secretKey = require("../secretKey"); function showPublicKey(req, res) { - res.send({ publicKey: AuthAPI.getPublicKey() }); + res.send({ publicKey: secretKey.public }); } module.exports = showPublicKey;