Off Chain Authentication
Authenticating ownership of off chain Token
/**
* @param {Object} unsignedToken token to attest
*/
negotiator.authenticate({
unsignedToken
});
negotiator.on("proof", () => {
// the proof will be received here (valid or failed)
});/**
* @param {object} selected unsigned token(s) to attest
*/
negotiator.authenticate([{
unsignedToken
}, {
issuer, // optional
unsignedToken,
}]);
negotiator.on("proof", () => {
// list of proofs will be received here (valid or failed)
});Last updated