summaryrefslogtreecommitdiff
path: root/examples/verify-callback.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/verify-callback.ts')
-rw-r--r--examples/verify-callback.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/verify-callback.ts b/examples/verify-callback.ts
new file mode 100644
index 0000000..a1df685
--- /dev/null
+++ b/examples/verify-callback.ts
@@ -0,0 +1,12 @@
+/**
+ * Example: Verifying a Digi-ID Callback
+ *
+ * This example demonstrates how to verify a callback from a Digi-ID compatible wallet.
+ * The callback contains a signature that needs to be verified against the original challenge.
+ */
+
+// Import directly from src for running locally before publishing
+// In a real project, you'd import from 'digiid-ts' after installing
+import { verifyDigiIDCallback, DigiIDError } from '../src/index';
+
+// ... existing code ... \ No newline at end of file