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

@kazion/react-native-apple-auth

v0.3.0

Published

A React Native module for Apple Sign In Built with Nitro Modules.

Downloads

199

Readme

@kazion/react-native-apple-auth

A React Native module for Apple Sign In Built with Nitro Modules.

Build Android Build iOS npm version npm downloads

Features

✨ Cross-Platform Apple Sign In

  • Native Apple Sign In implementation for iOS and Android
  • Smooth user experience following platform design guidelines
  • Optimized performance using Nitro Modules
  • Built with modern hybrid architecture (Swift for iOS, Kotlin for Android)

Requirements

  • React Native v0.76.0 or higher
  • Node 18.0.0 or higher

Installation

bun add @kazion/react-native-apple-auth react-native-nitro-modules

# Install iOS dependencies
cd ios && pod install && cd ..

# For Android, the dependencies are automatically linked with autolinking

Usage

import {
    AppleAuthCredential,
    AppleAuthScopes,
    RNAppleAuth,
} from "@kazion/react-native-apple-auth";
import { useState } from "react";
import { Button, SafeAreaView, Text, View } from "react-native";

const App = () => {
    const [loading, setLoading] = useState(false);
    const [creds, setCreds] = useState<AppleAuthCredential | null>(null);

    const handleAppleSignIn = async () => {
        setLoading(true);
        try {
            const appleAuthCredential = await RNAppleAuth.signIn({
                scopes: [AppleAuthScopes.EMAIL, AppleAuthScopes.FULL_NAME],
            });
            setCreds(appleAuthCredential);
        } catch (error) {
            console.error("Apple Sign In failed:", error);
        } finally {
            setLoading(false);
        }
    };

    return (
        <SafeAreaView style={{ flex: 1 }}>
            <View style={{ padding: 16 }}>
                <Text style={{ fontSize: 24, marginBottom: 20 }}>
                    Apple Auth Demo
                </Text>

                <Text>Email: {creds?.email ?? "Not available"}</Text>
                <Text>Full Name: {creds?.fullName ?? "Not available"}</Text>

                <Button
                    title={loading ? "Loading..." : "Sign in with Apple"}
                    onPress={handleAppleSignIn}
                    disabled={loading}
                />
            </View>
        </SafeAreaView>
    );
};

export default App;

API Reference

Types

AppleAuthCredential

The credential object returned after successful Apple Sign In.

| Property | Type | Description | | ------------------- | -------- | ------------------------------------------------- | | user | string | Unique identifier for the user | | email | string | User's email address (if requested and available) | | fullName | string | User's full name (if requested and available) | | authorizationCode | string | Authorization code for server-side verification | | identityToken | string | JWT identity token | | state | string | State parameter for additional security |

AppleAuthOptions

Configuration options for the sign-in request.

| Property | Type | Description | | ----------- | -------------------- | ------------------------------------- | | scopes | AppleAuthScopes[] | Array of requested permission scopes | | operation | AppleAuthOperation | Type of authentication operation | | nonce | string | Random string for security validation |

AppleAuthScopes

Available permission scopes for Apple Sign In.

| Value | Description | | ----------- | -------------------------------------- | | FULL_NAME | Request access to user's full name | | EMAIL | Request access to user's email address |

AppleAuthOperation

Type of authentication operation.

| Value | Description | | ---------- | ------------------------ | | LOGIN | Standard login operation | | LOGOUT | Logout operation | | IMPLICIT | Implicit authentication |

RealUserStatus

Status indicating if the user appears to be a real person.

| Value | Description | | ------------- | --------------------------------------------- | | UNSUPPORTED | Real user status not supported on this device | | UNKNOWN | Unable to determine if user is real | | LIKELY_REAL | User appears to be a real person |

Methods

signIn(options: AppleAuthOptions): Promise<AppleAuthCredential | null>

Initiates Apple Sign In flow with the specified options.

Parameters:

  • options: Configuration object containing scopes and optional parameters

Returns:

  • Promise<AppleAuthCredential | null>: Resolves with user credentials or null if cancelled

Example:

const credential = await RNAppleAuth.signIn({
    scopes: [AppleAuthScopes.EMAIL, AppleAuthScopes.FULL_NAME],
    operation: AppleAuthOperation.LOGIN,
});

Credits

Bootstrapped with create-nitro-module.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT