A plugin for Apache Cordova that provides secure storage of sensitive strings (usernames, passwords, tokens) on iOS, Android, and Windows using platform-native keychains. Version 3.0.2 is the latest stable release. The plugin wraps iOS Keychain via SAMKeychain, Android EncryptedSharedPreferences, and Windows PasswordVault. Differentiates from other Cordova storage plugins by focusing solely on secure credential storage and supporting a wide range of Windows platforms including WP8.1. Active maintenance with no major changes since v3.
npm install cordova-plugin-secure-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows full lifecycle: create a SecureStorage instance after device ready, then set and get a key. All operations are asynchronous with callbacks.
Always provide both callbacks, even if empty functions.
Use callbacks or wrap with promises/async.
Implement migration logic or accept data loss on upgrade.
Upgrade Windows target to 8.1 or later.
Use a different accessibility option or check iOS version before setting.
Wrap all plugin calls inside a deviceready listener.
Ensure code runs inside document.addEventListener('deviceready', function() { ... });Check that the success callback of the constructor fired. The namespace must be unique and the underlying keychain/storage must be accessible.
Run on a real device or signed app. For testing, ignore the error.
No dependency data recorded yet.