Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 655 Bytes

File metadata and controls

27 lines (18 loc) · 655 Bytes

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

import { Keychain } from "@payvo/cryptography";

Get an account from the keychain

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

Set an account in the keychain with the given password

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

Forget an account from the keychain

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