Skip to content

Implement support of legacy CredentialCategories request/response#134

Closed
chipp wants to merge 2 commits intomainfrom
vladimirburdukov-credential-categories-v3-support
Closed

Implement support of legacy CredentialCategories request/response#134
chipp wants to merge 2 commits intomainfrom
vladimirburdukov-credential-categories-v3-support

Conversation

@chipp
Copy link
Copy Markdown
Contributor

@chipp chipp commented Feb 26, 2026

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 26, 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 Feb 27, 2026 3:50am

Request Review

@Takaros999
Copy link
Copy Markdown
Contributor

@codex review

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: afa70f9514

ℹ️ 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/preset.rs Outdated
@chipp chipp force-pushed the vladimirburdukov-credential-categories-v3-support branch from afa70f9 to 5c9ce32 Compare February 26, 2026 22:30
Copy link
Copy Markdown
Contributor

@Takaros999 Takaros999 left a comment

Choose a reason for hiding this comment

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

since we dont have a pattern using this, i would withhold from releasing this to everyone

case success(IDKitResult)
case failure(IDKitErrorCode)
}
public typealias IDKitCompletionResult = Result<IdKitResult, IDKitErrorCode>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this a breaking change? we need to update our docs if so.

This SDK has already be given to reddit

Comment thread rust/core/src/bridge.rs
/// and from `BridgeResponseV2` (uses `responses`, plural).
#[derive(Debug, Deserialize)]
struct BridgeResponseCredentialCategories {
response: Vec<BridgeCredentialCategoriesProofItem>,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit. You can re-use BridgeResponseV1

Comment thread rust/core/src/bridge.rs
_ => None,
};

let bridge_request_type = match &params.legacy_v1_params {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit. This could an impl method on legacy v1 params to_bridge_protocol

Comment thread rust/core/src/bridge.rs
)
}

fn handle_credential_categories_response(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if you reuse BridgeResponseV1::into_response_item() you don't need this

@Takaros999
Copy link
Copy Markdown
Contributor

closing, can we can reopen if there is a need in the future

@Takaros999 Takaros999 closed this Mar 11, 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