Skip to content

feat(sdk): expose require user presence config#236

Merged
Takaros999 merged 2 commits into
takis/require-user-presencefrom
takis/require-user-presence-sdk
May 5, 2026
Merged

feat(sdk): expose require user presence config#236
Takaros999 merged 2 commits into
takis/require-user-presencefrom
takis/require-user-presence-sdk

Conversation

@Takaros999
Copy link
Copy Markdown
Contributor

This PR ...

  • adds require_user_presence to JS request and session configs
  • forwards the flag through WASM, native transport, React hooks, and native SDK configs
  • returns user_presence_failed from JS native transport when required completion is missing or false

Stacked on #230.

@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 Apr 29, 2026 9:21pm

Request Review

@Takaros999 Takaros999 marked this pull request as ready for review May 4, 2026 23:35
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: db61d81005

ℹ️ 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".

rp_context: RpContextWasm,
action_description?: string,
bridge_url?: string,
require_user_presence?: boolean,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Make require_user_presence required in TS session signatures

createSession/proveSession are declared with require_user_presence as optional here, but the exported Rust functions take a plain bool argument. That means callers can write code that type-checks while omitting this value (or shifting later optional args into this slot), and the wasm-bindgen boundary will receive a non-boolean/undefined for a required boolean parameter, causing runtime failures before the request is created. Align the declaration with runtime behavior by making this parameter required (or make the Rust side Option<bool> with an explicit default).

Useful? React with 👍 / 👎.

@Takaros999 Takaros999 merged commit db61d81 into takis/require-user-presence May 5, 2026
14 checks passed
@Takaros999 Takaros999 deleted the takis/require-user-presence-sdk branch May 5, 2026 00:58
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