Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@abstraxn/passkey-manager
Advanced tools
@abstraxn/passkey-manager is an npm package that provides a set of utilities and classes for creating and managing WebAuthn passkeys, extracting signatures, and handling local storage formats. The package is designed with an object-oriented approach, maki
The Passkey package provides utilities for handling WebAuthn passkeys, local storage, and signature extraction. It simplifies the process of creating, storing, and verifying passkeys using WebAuthn (Web Authentication) API, enabling secure authentication mechanisms in web applications.
Install the Passkey manager package from npm:
npm install @abstraxn/passkey-manager
To create a passkey:
import { createPasskey, getPassKey, toLocalStorageFormat, isLocalStoragePasskey, extractSignature, extractClientDataFields } from '@abstraxn/passkey-manager''
async function main() {
try {
// Create a passkey
const passkey = await createPasskey("username");
console.log("Passkey created:", passkey);
// Store passkey in local storage format
const passkeyLocalStorageFormat = toLocalStorageFormat(passkey);
console.log("Passkey stored in local storage format:", passkeyLocalStorageFormat);
} catch (error) {
console.error("Error creating passkey:", error);
}
}
main();
To retrieve a passkey:
const { getPassKey } = require('passkey');
async function main() {
try {
// Retrieve passkey
const passkey = await getPassKey();
console.log("Retrieved passkey:", passkey);
} catch (error) {
console.error("Error retrieving passkey:", error);
}
}
main();
extractSignature(signature: ArrayBuffer | Uint8Array): [bigint, bigint]
: Extracts R and S values from an authenticator signature.extractClientDataFields(response: AuthenticatorAssertionResponse): { field: string, clientDataJSON: string }
: Extracts additional client data fields from an authenticator response.This package is MIT licensed. (c) Antier Solutions 2024.
FAQs
@abstraxn/passkey-manager is an npm package that provides a set of utilities and classes for creating and managing WebAuthn passkeys, extracting signatures, and handling local storage formats. The package is designed with an object-oriented approach, maki
The npm package @abstraxn/passkey-manager receives a total of 0 weekly downloads. As such, @abstraxn/passkey-manager popularity was classified as not popular.
We found that @abstraxn/passkey-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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.