@abstraxn/passkey-manager
Version:
@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
15 lines (14 loc) • 591 B
TypeScript
/**
* Sets an item in the local storage.
* @param key - The key to set the item with.
* @param value - The value to be stored. It will be converted to a string using JSON.stringify.
* @template T - The type of the value being stored.
*/
export declare function setItem<T>(key: string, value: T): void;
/**
* Retrieves the value associated with the specified key from the local storage.
*
* @param key - The key of the item to retrieve.
* @returns The value associated with the key, or null if the key does not exist.
*/
export declare function getItem(key: string): string | null;