Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@arcxmoney/passport-js
Advanced tools
Passport.js ノ is a small React library that offers interactive components to display an individual's DeFi passport in your application.
The Passport
component fetches an address' information from our backend servers and upon success returns the user's passport video.
If the user has no DeFi passport, no widget will be shown.
Install our package either through yarn add @arcxmoney/passport-js
or npm install @arcxmoney/passport-js --save
.
The Passport
component is an absolute positioned component written to load on top of your application.
We recommend placing it higher up your component tree for readability, but also inside your Web3 provider.
Below is an example of how to combine the useWeb3React hook with the Passport component
import { Passport } from '@arcxmoney/passport-js';
import { useWeb3React } from '@web3-react/core'
const Page = () => {
const { account } = useWeb3React();
return (
<Layout>
<Passport account={account} />
</Layout>
);
}
The underlying <video />
component is fully customizable through the videoStyles
prop.
<Passport
videoStyles={{ border: '3px solid red' }}
account={USER_ADDRESS}
/>
Name | Description | Required | Default value |
---|---|---|---|
account | The user's address. | Yes | |
analytics | Voluntary prop to activate if you wish to help us out by sharing metrics. 🙂 | No | true |
videoStyles | Customize styles for the underlying video component. | No | Default Styles |
We will be actively working on this library to help other protocols and builders integrate DeFi Passports and reputation.
Here's a small list of things currently being worked on:
If you have any questions or suggestions, feel free to raise an issue in our repository.
Happy building! ノ
FAQs
Component to show Passport
The npm package @arcxmoney/passport-js receives a total of 0 weekly downloads. As such, @arcxmoney/passport-js popularity was classified as not popular.
We found that @arcxmoney/passport-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.