Custom Data
Any time before you call TC.accept()
, you can optionally pass any additional data you'd like to the library. We recommend passing data that will help identify the Signer in your system and in the real world. The setCustomData(object)
function accepts any valid Javascript Object. Note the object must be able to successfully be converted into a string using JSON.stringify()
.
TC.setCustomData({
profile: {
age: 12,
gender: "male",
},
location: {
country: "US",
state: "CA",
city: "Los Angeles",
},
session: {
id: "xxx",
csrf: "token"
}
});
Updated about 1 year ago