Socket
Socket
Sign inDemoInstall

react-native-keychain

Package Overview
Dependencies
205
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-keychain

Keychain Access for React Native


Version published
Weekly downloads
144K
decreased by-4.95%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-native-keychain

Keychain Access for React Native

Currently functionality is limited to just storing internet passwords. More to come...

Installation

  • $ npm install react-native-keychain
  • Right click on Libraries, select Add files to "…" and select node_modules/react-native-keychain/RNKeychain.xcodeproj
  • Select your project and under Build Phases -> Link Binary With Libraries, press the + and select libRNKeychain.a.

Usage

See KeychainExample for fully working project example.

var Keychain = require('Keychain');

var server = 'http://facebook.com';
var username = 'zuck';
var password = 'poniesRgr8';
Keychain
  .setInternetCredentials(server, username, password)
  .then(function() {
    console.log('Credentials saved successfully!')
  });

Keychain
  .getInternetCredentials(server)
  .then(function(credentials) {
    console.log('Credentials successfully loaded', credentials)
  });

Keychain
  .resetInternetCredentials(server)
  .then(function(credentials) {
    console.log('Credentials successfully deleted')
  });

License

MIT © Joel Arvidsson 2015

Keywords

FAQs

Last updated on 28 May 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc