Giter VIP home page Giter VIP logo

react-native-onepassword's Introduction

react-native-onepassword

React Native integration with the OnePassword extension.

Install

  1. Install project as a dependency:

     npm install --save react-native-onepassword
    
  2. Link library to Xcode project (see the React documentation).

  3. If your app supports iOS 7.1 or earlier, view the OnePassword documentation for applicable steps.

Basic usage

Public Methods

isSupported(): Promise
Checks if the OnePassword extension is availabile on the current platform.

var OnePassword = require("react-native-onepassword");
OnePassword.isSupported()
    .then(
        () => {
            console.log("OnePassword app is installed and ready!")
        },
        () => {
            console.log("OnePassword not available.");
        }
    );

findLogin(url:String): Promise
Opens the OnePassword extension, filtering the list of logins by the URL you provide. When the user selects a login, the credentials are passed to the callback function as plaintext.

If you are unsure what URL to pass, see the OnePassword documentation.

OnePassword.findLogin("https://example.com/login")
.then((credentials) => {
    // User selected a login.
    doSomethingWith(credentials.username);
    doSomethingElseWith(credentials.password);
})

react-native-onepassword's People

Contributors

ahanriat avatar jjshammas avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.