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

@logi-auth/react-native

v1.0.0

Published

Sign in with logi (1pass) for Expo / React Native — OAuth2 PKCE via expo-auth-session

Readme

@logi-auth/react-native

Sign in with logi (1pass) in Expo / React Native apps. Wraps expo-auth-session to run the OAuth 2.0 Authorization Code flow with PKCE (S256) — the same contract as @logi-auth/browser, adapted for a native single-call flow.

  • Zero secrets on device — public PKCE client (RFC 8252 native app).
  • One await signIn() → opens the system browser, exchanges the code, returns a session.
  • Same option names as the browser SDK (clientId, redirectUri, scopes, issuer).

Verified against [email protected] (Expo SDK 57, latest as of 2026-07-09). The public API (AuthRequest / exchangeCodeAsync / makeRedirectUri) has been stable across recent SDKs; the peerDependencies floor is set conservatively.

Install

npx expo install expo-auth-session expo-crypto expo-web-browser
npm install @logi-auth/react-native

Add a custom URL scheme to app.json so the IdP can redirect back into your app:

{ "expo": { "scheme": "myapp" } }

Register the resulting redirect URI (e.g. myapp://oauth/callback) on your logi client as a public client. See https://docs.1pass.dev/oauth/public-clients.

Usage

import { LogiAuth, makeRedirectUri } from "@logi-auth/react-native";
import { Button } from "react-native";

const auth = new LogiAuth({
  clientId: "logi_xxx",
  redirectUri: makeRedirectUri({ scheme: "myapp", path: "oauth/callback" }),
  // scopes default to ["openid", "profile:basic", "email"]
});

export function LoginButton() {
  const onPress = async () => {
    try {
      const session = await auth.signIn();
      // session.accessToken / session.idToken / session.refreshToken
      // session.sub / session.email  ← UI hints only (see note below)

      // Send session.idToken to YOUR backend and verify it there with a logi
      // server SDK before trusting the identity.
    } catch (e) {
      // e is a LogiAuthError with .code ("user_cancelled", "token_exchange_failed", …)
    }
  };
  return <Button title="logi로 계속하기" onPress={onPress} />;
}

Refreshing

const tokens = await auth.refresh(session.refreshToken!);
// persist tokens.refreshToken — logi rotates it

⚠️ id_token verification

session.sub / session.email are decoded without verifying the id_token signature — React Native has no reliable RS256/JWKS primitive, so client-side verification would give false assurance. This SDK checks the nonce (replay defense) and state (CSRF defense) but not the signature.

For any authorization decision, send session.idToken to your backend and verify it with a logi server SDK: @logi-auth/server (Node), logi-auth (Python), logi_auth (Ruby).

Options

| Option | Default | |--------|---------| | clientId | required | | redirectUri | required (custom scheme, e.g. myapp://oauth/callback) | | scopes | ["openid", "profile:basic", "email"] | | issuer | https://api.1pass.dev | | tokenIssuer | https://api.1pass.dev |

License

Apache-2.0