Skip to content

feat: add user presence flag #230

Open
Takaros999 wants to merge 8 commits into
mainfrom
takis/require-user-presence
Open

feat: add user presence flag #230
Takaros999 wants to merge 8 commits into
mainfrom
takis/require-user-presence

Conversation

@Takaros999
Copy link
Copy Markdown
Contributor

@Takaros999 Takaros999 commented Apr 29, 2026

This PR ...

  • adds the bridge user presence response contract
  • exposes user_presence_completed on successful results
  • fails required user presence with user_presence_failed when completion is missing or false
  • keeps public SDK config wiring for the next stacked PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
idkit-js-example Ready Ready Preview, Comment May 5, 2026 1:01am

Request Review

@Takaros999 Takaros999 force-pushed the takis/require-user-presence branch from 4450d13 to 521e3ac Compare April 29, 2026 20:38
@Takaros999 Takaros999 changed the title feat: add user presence config feat(core): enforce user presence bridge contract Apr 29, 2026
Gr1dlock
Gr1dlock previously approved these changes Apr 30, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread rust/core/src/bridge.rs Outdated
Comment on lines +735 to +740
if let Some(status) = user_presence_failure_status(
self.require_user_presence,
user_presence_completed,
) {
return Ok(status);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@Takaros999 Takaros999 changed the title feat(core): enforce user presence bridge contract feat: add user presence flag May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants