Use secretKey module directly
This commit is contained in:
parent
ab72779cfb
commit
168ccf5aac
server
|
@ -90,14 +90,9 @@ function removeAllRevokedTokens() {
|
|||
});
|
||||
}
|
||||
|
||||
function getPublicKey() {
|
||||
return secretKey.public;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
createToken,
|
||||
verifyToken,
|
||||
revokeToken,
|
||||
removeAllRevokedTokens,
|
||||
getPublicKey
|
||||
removeAllRevokedTokens
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue