
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@3id/ui-provider
Advanced tools
An interface for applications to impelement any user interface 3ID connect service.
An interface for applications to impelement any user interface 3ID connect service.
NOTE: Mostly internal use, names and interfaces are likely to change soon and support currently being added in the 3ID Connect Service and/or 3ID Manager Library
npm install @ceramicstudio/ui-provider
Example usage:
import { UIProvider, ThreeIDManagerUI } from '@ceramicstudio/ui-provider'
// Implement the following UI Handlers
const UIMethods: UIProviderHandlers = {
// Ask user to continue with 3box account migration, true to
// migrate, false to cancel request
prompt_migration: async (ctx, params) => {
//...
},
// Ask user to skip migration after migration faile, true to
// create new account, false to cancel request
prompt_migration_skip: async (ctx, params) => {
//...
},
// Known migration failure bugs, ask user to continue with new
// account instead, true to create new, false to cancel request
prompt_migration_fail: async (ctx, params) => {
//...
},
// Ask user to connect account to existing account or create new.
// Displayed when CAIP10 has no existing link in network.
prompt_account: async (ctx, params) => {
//...
},
// Permission request for app to access 3id-connect
prompt_authenticate: async (ctx, params) => {
//...
},
// Any errors during flows
inform_error: async (ctx, params) => {
//...
},
// Inform UI that a flow has ended and no futher requests are expected
inform_close: async (ctx, params) => {
//...
}
}
//Create a 3ID Connect UI Provider
const provider = new UIProvider(UIMethods)
// TODO: provider consumption in other libraries
FAQs
An interface for applications to impelement any user interface 3ID connect service.
We found that @3id/ui-provider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.