Skip to content
Compare
Choose a tag to compare
@clerk-cookie clerk-cookie released this 08 Nov 20:30
· 1 commit to main since this release
f2cb38e

Minor Changes

  • Introduce experimental support for passkeys in Expo (iOS, Android, and Web). (#4352) by @AlexNti

    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. (#4487) by @octoper

    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. (#4513) by @alexcarpenter

  • Add afterJoinWaitlistUrl to DisplayConfig resource (#4524) by @nikospapcom