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

@frontegg/react-native

v1.2.23

Published

Frontegg React-Native SDK

Readme


Frontegg is a self-served user management platform for modern SaaS applications. Drop this SDK in and your app gets a production login screen, a live session, and a user object — without you writing an auth flow or touching a token.

| | | | --- | --- | | Hosted or embedded login | Frontegg's login box, or your own UI on top of the API | | Every method your tenants need | Email, social, SSO, magic link, passkeys, MFA and step-up | | Sessions that stay alive | Tokens refresh in the background, on both platforms | | Built for multi-tenant SaaS | Multi-tenancy, RBAC, entitlements and multi-region support |


Install

npm install @frontegg/react-native

Then the peer dependencies:

# Expo
npx expo install @react-native-async-storage/async-storage @react-navigation/native @react-navigation/native-stack react-native-screens react-native-safe-area-context

# Bare React Native
npm install @react-native-async-storage/async-storage @react-navigation/native @react-navigation/native-stack react-native-screens react-native-safe-area-context

Requirements: React Native 0.63+ · iOS deployment target 14+ · Android API 26+ with JDK 17 and AGP 7.4+. Passkeys additionally need iOS 15+ and Chrome Custom Tabs on Android.

Quick start

1 · Allow the redirect URLs. In the Frontegg Portal, under [ENVIRONMENT] → Authentication → Login method, turn hosted login on and add the shared URL plus one per platform:

{{FRONTEGG_BASE_URL}}/oauth/authorize

# iOS
{{IOS_BUNDLE_IDENTIFIER}}://{{FRONTEGG_BASE_URL}}/ios/oauth/callback

# Android
{{ANDROID_PACKAGE_NAME}}://{{FRONTEGG_BASE_URL}}/android/oauth/callback
https://{{FRONTEGG_BASE_URL}}/oauth/account/redirect/android/{{ANDROID_PACKAGE_NAME}}

2 · Configure the native projects. iOS reads a Frontegg.plist; Android takes its domain and client ID from build.gradle. Both are covered step by step in the Setup guide — this is the one part that is not JavaScript, and it differs per platform.

3 · Wrap your app.

import { NavigationContainer } from '@react-navigation/native';
import { FronteggWrapper } from '@frontegg/react-native';

export default function App() {
  return (
    <FronteggWrapper>
      <NavigationContainer>
        {/* your navigator */}
      </NavigationContainer>
    </FronteggWrapper>
  );
}

4 · Read the authentication state anywhere below it.

import { View, Button } from 'react-native';
import { useAuth, login } from '@frontegg/react-native';

export function MyScreen() {
  const { isAuthenticated } = useAuth();

  return (
    <View>
      {isAuthenticated ? <Profile /> : <Button title="Login" onPress={login} />}
    </View>
  );
}

Documentation

| Guide | What it covers | | --- | --- | | Get Started | Requirements, environment prep, installation | | Setup | iOS and Android native configuration | | Usage Examples | Hooks, login flows, error handling | | API Reference | Every method, hook and type the SDK exports | | Advanced Topics | Complex integration scenarios |

Full platform documentation lives at developers.frontegg.com.

Example app

A complete integration you can run: example.

Support

No Frontegg account yet? Sign up free.

Questions, or something broken? Reach the team at support.frontegg.com or open an issue.

Licensed under the LICENSE in this repository.