Skip to content

Commit 80c239f

Browse files
committed
Fix example site for changes
1 parent bfd0d37 commit 80c239f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

example/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { serveStatic } from "hono/deno";
33

44
import {
55
CredentialRequestOptions,
6-
generateRequestOptions,
7-
verifyResponse,
6+
generatePresentationOptions,
7+
verifyPresentationResponse,
88
} from "../packages/server/src/index.ts";
99

1010
let currentOptions: CredentialRequestOptions;
@@ -15,7 +15,7 @@ app.use("/static/*", serveStatic({ root: "./" }));
1515
app.get("/", serveStatic({ path: "./static/index.html" }));
1616

1717
app.get("/options", async (ctx) => {
18-
const options = await generateRequestOptions({
18+
const options = await generatePresentationOptions({
1919
desiredClaims: ["family_name", "given_name"],
2020
requestOrigin: "http://localhost:8000",
2121
});
@@ -32,7 +32,7 @@ app.post("/verify", async (ctx) => {
3232

3333
console.log("verifying presentation", body);
3434

35-
const verified = await verifyResponse({
35+
const verified = await verifyPresentationResponse({
3636
response: body,
3737
options: currentOptions,
3838
});

0 commit comments

Comments
 (0)