npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-otp-auth-link

v1.2.1

Published

Open otpauth:// in chosen password manager (iOS/Android)

Readme

react-native-otp-auth-link

NOTE: This library is still in early development. Please open an issue if you encounter any problems or have suggestions.

A lightweight React Native module that helps you route otpauth:// links to third-party password managers such as 1Password, Bitwarden, Authy, LastPass, Dashlane, Microsoft Authenticator, or fall back to Apple Passwords on iOS.

Installation

yarn add react-native-otp-auth-link

Post-install steps

iOS

iOS restricts which custom URL schemes can be queried via Linking.canOpenURL. If you don’t whitelist them, your app cannot detect or open password managers.

Add the following block to your ios/<AppName>/Info.plist:

<key>LSApplicationQueriesSchemes</key>
<array>
  <string>onepassword</string>
  <string>bitwarden</string>
  <string>authy</string>
  <string>lastpass</string>
  <string>dashlane</string>
  <string>msauthv2</string>
</array>

👉 No changes are required for Apple Passwords (iOS handles otpauth:// natively).

Android

Since Android 11 (API 30), apps must declare which external packages they can query. If you don’t, your app cannot detect or open password managers.

Add the following block to your android/app/src/main/AndroidManifest.xml:

<manifest ...>
  <queries>
    <intent>
      <action android:name="android.intent.action.VIEW" />
      <data android:scheme="onepassword" />
    </intent>
    <intent>
      <action android:name="android.intent.action.VIEW" />
      <data android:scheme="bitwarden" />
    </intent>
    <intent>
      <action android:name="android.intent.action.VIEW" />
      <data android:scheme="authy" />
    </intent>
    <intent>
      <action android:name="android.intent.action.VIEW" />
      <data android:scheme="lastpass" />
    </intent>
    <intent>
      <action android:name="android.intent.action.VIEW" />
      <data android:scheme="dashlane" />
    </intent>
    <intent>
      <action android:name="android.intent.action.VIEW" />
      <data android:scheme="msauthv2" />
    </intent>
    <intent>
      <action android:name="android.intent.action.VIEW" />
      <data android:scheme="otpauth" />
    </intent>
  </queries>

  <application ...>
    ...
  </application>
</manifest>

Expo

If you use Expo, you'll first need to crate a custom config plugin to modify the AndroidManifest.xml.

// plugins/withAndroidPlugin.ts
import { withAndroidManifest, ConfigPlugin } from "expo/config-plugins";

const withAndroidPlugin: ConfigPlugin = (config) => {
  return withAndroidManifest(config, (config) => {
    const schemes = [
      "msauthv2",
      "onepassword",
      "lastpass",
      "dashlane",
      "authy",
      "otpauth",
    ];

    config.modResults.manifest.queries = [
      {
        intent: schemes.map((scheme) => ({
          action: [{ $: { "android:name": "android.intent.action.VIEW" } }],
          data: [{ $: { "android:scheme": scheme } }],
        })),
      },
    ];

    return config;
  });
};

export default withAndroidPlugin;

Then, in your app.config.js, include the plugin with the rest of your config and the iOS Info.plist changes:

export default {
  ios: {
    infoPlist: {
      LSApplicationQueriesSchemes: [
        "onepassword",
        "bitwarden",
        "authy",
        "lastpass",
        "dashlane",
        "msauthv2",
      ],
    },
    ...
  },
  plugins: ["./plugins/withAndroidPlugin", ...],
};

Usage

NOTE: React Native does not allow you to open modals from outside the render tree. To properly support the manager picker on Android, use the useOtpManager hook.

import { useOtpManager } from "react-native-otp-auth-link";

const { openManager, pickerData, hidePicker } = useOtpManager();

return (
  <View>
    <Button onPress={() => openManager('otpauth://...')} />
    {pickerData && (
      <ManagerPicker
        url={pickerData.url}
        managers={pickerData.managers}
        visible={true}
        onClose={hidePicker}
      />
    )}
  </View>
);

Otherwise, you can use the openOtpManager function directly.

import { openOtpManager } from "react-native-otp-auth-link";

const url =
"otpauth://totp/Example:[email protected]?secret=ABC123&issuer=Example";

await openOtpManager(url);

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT © Dylan Duunk