Packages

@clerk/types

4.101.20 · 27 Feb 2026MIT3.2M / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: This package is no longer supported. Please import types from @clerk/shared/types instead. See the upgrade guide for more info: https://clerk.com/docs/guides/development/upgrading/upgrade-guides/core-3What to use instead
Your version

4.31.0

8 Nov 2024Where it was published

4.101.29 is the newest release of 4.x.

npm marks 4.31.0 as deprecated: This package is no longer supported. Please import types from @clerk/shared/types instead. See the upgrade guide for more info: clerk.com/docs/guides/development/upgrading/upg…

In short

3 new1 fixed

Release note

Minor Changes

  • Introduce experimental support for passkeys in Expo (iOS, Android, and Web).

    To use passkeys in Expo projects, pass the __experimental_passkeys object, which can be imported from @clerk/clerk-expo/passkeys, to the ClerkProvider component:

    import { ClerkProvider } from '@clerk/clerk-expo';
    import { passkeys } from '@clerk/clerk-expo/passkeys';
    
    <ClerkProvider __experimental_passkeys={passkeys}>{/* Your app here */}</ClerkProvider>;

    The API for using passkeys in Expo projects is the same as the one used in web apps:

    // passkey creation
    const { user } = useUser();
    
    const handleCreatePasskey = async () => {
      if (!user) return;
      try {
        return await user.createPasskey();
      } catch (e: any) {
        // handle error
      }
    };
    
    // passkey authentication
    const { signIn, setActive } = useSignIn();
    
    const handlePasskeySignIn = async () => {
      try {
        const signInResponse = await signIn.authenticateWithPasskey();
        await setActive({ session: signInResponse.createdSessionId });
      } catch (err: any) {
        //handle error
      }
    };
  • The Legal consent feature is now stable.

    Removed the __experimental_ preffix.

Patch Changes

  • Fixes issues in ClerkRouter that were causing inaccurate pathnames within Elements flows. Also fixes a dependency issue where @clerk/elements was pulling in the wrong version of @clerk/shared.

  • Add afterJoinWaitlistUrl to DisplayConfig resource

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.