Skip to content

Commit 65bf307

Browse files
committed
Tweak verification return value
1 parent 4f801bd commit 65bf307

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ app.post("/verify", async (ctx) => {
3939
console.log("verifying presentation", body);
4040

4141
return ctx.json({
42-
TODO: "this",
42+
verified: "TODO",
4343
});
4444
});
4545

example/static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h1>SimpleDigiCreds Example Site</h1>
8888
JSON.stringify(verificationJSON, null, 2)
8989
);
9090

91-
if (verificationJSON && verificationJSON.verified) {
91+
if (verificationJSON && verificationJSON.verified === true) {
9292
elemSuccess.innerHTML = "Successfully requested a credential!";
9393
} else {
9494
elemError.innerHTML = `Oh no, something went wrong! Response: <pre>${JSON.stringify(

0 commit comments

Comments
 (0)