Keychain

The Keychain class provides methods to extract the numerical value out of any currency representation by normalizing the input and removing any locale specific rules like symbols and use of commas.

Importing the Keychain class

1import { Keychain } from "@ardenthq/sdk-cryptography";

Get an account from the keychain

1Keychain.get('your-app-name', 'account-id');

Set an account in the keychain with the given password

1Keychain.set('your-app-name', 'account-id', 'password');

Forget an account from the keychain

1Keychain.forget('your-app-name', 'account-id');
Last updated 2 years ago
Edit Page
Share: