feat(sdk): expose 4.0 selfie credential#259
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3f6b2cc to
250c22a
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 250c22a9f8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /// Selfie credential | ||
| Selfie, | ||
| /// Passport credential (ICAO 9303 compliant travel document) |
There was a problem hiding this comment.
Preserve
face as an accepted credential alias
Renaming CredentialType::Face to CredentialType::Selfie without a compatibility alias makes previously valid "face" inputs fail deserialization in the WASM/FFI constructors (they deserialize directly into CredentialType). Any existing integration still passing CredentialRequest("face") will now error at request construction time instead of creating a proof request. Keep accepting face as an alias (while emitting selfie) to avoid breaking deployed clients during migration.
Useful? React with 👍 / 👎.
This PR exposes the World ID 4.0 selfie credential across SDK surfaces.
facetoselfiein Rust/WASM types.CredentialRequest("selfie", ...)path and adds Selfie to the Next.js example dropdown.constraints(...)path for generated 4.0 constraint nodes.