Commit 0a8a3a7c by zCaesar

chk_1 change rs to es can use

parent cd0e0490
...@@ -8,7 +8,7 @@ module.exports.signRole = signRole ...@@ -8,7 +8,7 @@ module.exports.signRole = signRole
function checkRealDB(token) { function checkRealDB(token) {
const verifyOptions = { const verifyOptions = {
algorithms: ['RS256'] algorithms: ['ES256']
}; };
try { try {
return jwt.verify(token, config.get('pubca'), verifyOptions) return jwt.verify(token, config.get('pubca'), verifyOptions)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment