Introduce a few user arguments
This commit is contained in:
@@ -50,10 +50,12 @@ module.exports.authenticate = function(challenge, authenticationRequest, argv) {
|
||||
const signature = cryptoUtil.signMessage(walletXpriv, challengeDerivationPath, challenge.message).toString('hex');
|
||||
console.log("Signature: ", signature);
|
||||
|
||||
postSignature.postSignature(authenticationRequest.responseEndpoint, {
|
||||
id: challenge.id,
|
||||
signature: signature
|
||||
})
|
||||
if(argv.p) {
|
||||
postSignature.postSignature(authenticationRequest.responseEndpoint, {
|
||||
id: challenge.id,
|
||||
signature: signature
|
||||
})
|
||||
}
|
||||
} else {
|
||||
console.error("Challenge not signed by registered service.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user