feat: add user presence flag #230
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
545def7 to
cc400e7
Compare
cc400e7 to
b87a1a8
Compare
4450d13 to
521e3ac
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7aa3766e64
ℹ️ 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".
| if let Some(status) = user_presence_failure_status( | ||
| self.require_user_presence, | ||
| user_presence_completed, | ||
| ) { | ||
| return Ok(status); | ||
| } |
There was a problem hiding this comment.
Check protocol errors before enforcing user-presence failure
When require_user_presence is true, this branch returns user_presence_failed before inspecting proof_response.error, which masks real protocol failures (for example invalid_rp_signature or user_rejected) whenever World App returns an error response without user_presence_completed: true. This changes failure semantics for all V2 error payloads under required presence and makes downstream error handling/reporting incorrect; the protocol-level error should be evaluated first, then user-presence enforcement should apply to otherwise successful responses.
Useful? React with 👍 / 👎.
This PR ...
user_presence_completedon successful resultsuser_presence_failedwhen completion is missing or false