Socket
Book a DemoInstallSign in
Socket

@clerk/expo-passkeys

Package Overview
Dependencies
Maintainers
6
Versions
1638
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clerk/expo-passkeys

Passkeys library to be used with Clerk for expo

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
6
Created
Source


@clerk/expo-passkeys

Prerequisites

  • Expo 51 or later
  • React 18.0.2 or later
  • React Native 0.73 or later
  • Node.js >=18.17.0 or later
  • An existing Expo application.
  • An existing Clerk application. Create your account for free.
  • Passkeys to be enabled

Usage

import { ClerkProvider } from '@clerk/clerk-expo';
import { passkeys } from '@clerk/clerk-expo/passkeys';

<ClerkProvider __experimental_passkeys={passkeys}>{/* Your app here */}</ClerkProvider>;

🔑 Creating a Passkey

const { user } = useUser();

const handleCreatePasskey = async () => {
  if (!user) return;
  try {
    return await user.createPasskey();
  } catch (e: any) {
    // handle error
  }
};

🔓 Authenticating with a Passkey

const { signIn, setActive } = useSignIn();

const handlePasskeySignIn = async () => {
  try {
    const signInResponse = await signIn.authenticateWithPasskey();
    await setActive({ session: signInResponse.createdSessionId });
  } catch (err: any) {
    // handle error
  }
};

Support

You can get in touch with us in any of the following ways:

Contributing

We're open to all community contributions! If you'd like to contribute in any way, please read our contribution guidelines and code of conduct.

Security

@clerk/expo-passkeys follows good practices of security, but 100% security cannot be assured.

@clerk/expo-passkeys is provided "as is" without any warranty. Use at your own risk.

For more information and to report security issues, please refer to our security documentation.

License

This project is licensed under the MIT license.

See LICENSE for more information.

Keywords

react-native

FAQs

Package last updated on 12 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts