Incorrect type for verify() output
bluenex opened this issue · comments
The actual output object looks like this:
{
address: string;
body: {
"expiration-time": string;
"issued-at": string;
"nonce": string;
"uri": string;
"web3-token-version": string;
}
}
But the type defined is this:
Lines 25 to 31 in da90d15
The problem is VerifyBody
doesn't have those fields mentioned above. I think having another type for verifying result is reasonable (probably as VerifyResult
).
Fixed in the latest version