
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@digital-gov-mg/nui-federation-ts-sdk
Advanced tools
This TypeScript SDK connects to the NUI Federation API for getting or creating, revoke, generating batch for NUI from the API
This TypeScript SDK connects to the NUI Federation API for getting or creating, revoke, generating batch for NUI from the API.
npm install @digital-gov-mg/nui-federation-ts-sdk
import NuiFederation from '@digital-gov-mg/nui-federation-ts-sdk'
// Initialize NUIFederation
const baseUrl = 'https://example.com/api'
const clientId = 'your-client-id'
const clientSecret = 'your-client'
const nuiFederation = new NuiFederation(baseUrl, clientId, clientSecret)
// Example 1: Get or Create UIN
citizenDatas = [
{
externalId: '123',
firstname: 'John',
lastname: 'Doe',
dateOfBirth: '2000-01-01',
birthCertificateId: 'BC123',
motherName: 'Jane Doe',
},
]
try {
const res = await nuiFederation.uin.getOrCreate(citizenDatas)
console.log('UIN Response:', res)
} catch (err) {
console.log('Error creating or fetching UIN:', err.message)
}
// Example 2: Revoke a UIN
const uin = '1234567890'
try {
const res = await nuiFederation.uin.revoke(uin)
console.log('Revoke UIN Response:', res)
} catch (err) {
console.log('Error revoking UIN:', err.message)
}
// Example 3: Generate UIN Batch
const count = 5
try {
const res = await nuiFederation.uin.generateBatch(count)
console.log('Generate UIN Batch Response:', res)
} catch (err) {
console.log('Error generating UIN Batch:', err.message)
}
FAQs
This TypeScript SDK connects to the NUI Federation API for getting or creating, revoke, generating batch for NUI from the API
We found that @digital-gov-mg/nui-federation-ts-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.