worldcoin / developer-portal

The Worldcoin Developer Portal provides tools to interact with the Worldcoin SDK. Easiest way to get started with World ID.
https://developer.worldcoin.org
MIT License
59 stars 31 forks source link

feat: /api/v2/verify #693

Closed 0xPenryn closed 3 months ago

0xPenryn commented 3 months ago

Adds the /api/v2/verify/[app_id] endpoint, which deprecates the credential_type field and replaces signal with signal_hash.

web/lib/verify.ts is copied from web/legacy/backend/verify.ts and modified to support logic changes without modifying behavior of the v1 verify endpoint.

andy-t-wang commented 3 months ago

Lets write an API test for this as well. Should be some for v1 already we can re-use

0xPenryn commented 3 months ago

Lets write an API test for this as well. Should be some for v1 already we can re-use

@igorosip0v can you help write a test for this? i'm not familiar with jest