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

@mobtechi/auth

v1.1.7

Published

Industrial-grade Identity SDK for the MobTechi ecosystem. Pluggable auth components for React and React Native.

Readme

@mobtechi/auth

Industrial-grade Identity SDK for the MobTechi ecosystem. Pluggable authentication components for React and React Native.

🚀 Features

  • Plug & Play: Standalone MobTechiAuth component for instant login/signup logic.
  • Multi-Platform: Abstracted storage engine supports Web (localStorage) and React Native.
  • Global Session Revocation: Built-in support for signing out of other devices.
  • Branded Design: High-performance, highly-stylized UI tailored for modern apps.
  • Hybrid Auth: Native support for OTP-based and Password-based flows.

📦 Installation

This package is hosted on the MobTechi Private Registry. Ensure you have configured your .npmrc before installing.

1. Configure Registry

Add the following to your ~/.npmrc or project-root .npmrc:

@mobtechi:registry=https://npm.mobtechi.com/
//npm.mobtechi.com/:_authToken=${MOBTECHI_NPM_TOKEN}

2. Install Package

npm install @mobtechi/auth

🛠️ Quick Start

1. Wrap your application

Wrap your root component with the AuthProvider. Ensure you provide your hardened app_id and api_url.

import { AuthProvider } from '@mobtechi/auth';

export default function Root() {
  return (
    <AuthProvider 
      app_id="your-app-id" 
      org_id="your-org-id"
      api_url="https://prod.mobtechi.com/api"
      on_navigate={(path) => router.push(path)}
    >
      <App />
    </AuthProvider>
  );
}

2. Add the Auth Widget

Use the MobTechiAuth component in your sign-in page. The component strictly adheres to the MobTechi Design System.

import { MobTechiAuth } from '@mobtechi/auth';

export default function SignInPage() {
  return (
    <MobTechiAuth 
      branding={{
        app_name: 'My App',
        primary_color: '#6366f1',
        secondary_color: '#4f46e5',
        logo: '/logo.png',
        privacy_url: '/privacy',
        terms_url: '/terms'
      }}
      on_success={() => router.push('/dashboard')}
    />
  );
}

3. Use Auth Hooks

Access session state anywhere in your app using useAuth() or useUser(). Note that all user properties are now strictly snake_case.

import { useAuth, useUser } from '@mobtechi/auth';

function Profile() {
  const { signOut } = useAuth();
  const { user, is_signed_in } = useUser();

  if (!is_signed_in) return null;

  return (
    <div>
      <img src={user.image} />
      <p>Hello, {user.full_name}</p>
      <p>Organization: {user.org_id}</p>
      <button onClick={signOut}>Logout</button>
    </div>
  );
}

📱 Native Authentication

For React Native / Expo applications, use the MobTechiAuthNative component. It features a high-fidelity, theme-aware engine with glassmorphism support.

import { MobTechiAuthNative } from '@mobtechi/auth';

export default function LoginPage() {
  return (
    <MobTechiAuthNative 
      theme="glass" // 'dark' | 'light' | 'glass' | 'midnight' | 'aurora'
      branding={{
        app_name: 'CODETUTO',
        primary_color: '#2de2c0',
        secondary_color: '#0e9f87',
        tagline: 'MASTER THE FUTURE OF CODE',
        logo: 'https://example.com/logo.png',
        // Optional Visibility Controls
        hide_logo: false,      // Set to true to hide the branding logo
        hide_app_name: false,  // Set to true to hide the app name text
        hide_tagline: false,   // Set to true to hide the tagline subtitle
        hide_powered_by: false // Set to true to hide the footer badge
      }}
      on_success={(data) => {
        console.log('User signed in:', data.user);
      }}
    />
  );
}

🎨 Theme Options

The MobTechiAuthNative component supports several high-performance themes:

  • dark: Classic MobTechi dark mode with subtle glows.
  • light: Minimalist, high-contrast light mode.
  • glass: Premium glassmorphism effect using expo-blur and technical grid overlays.
  • midnight: Deep blue palette with soft violet accents.
  • aurora: Tech-focused teal and dark slate aesthetic.

🌐 Global Country Picker

The native component includes a professional, searchable country code selector that automatically adapts to the chosen theme. It supports over 40+ regions with instant filtering by country name or dialing code.

🛡️ Security

This SDK implements industrial-grade JWT session management. It supports secure HTTP-only cookie validation and falls back to secure Bearer token headers for cross-platform support. Session revocation is handled natively by the Identity Engine.

📄 License

MIT © MobTechi