Back to Clerk

`useSignInWithApple` and `useSignInWithGoogle` moved to separate entry points

packages/upgrade/src/versions/core-3/changes/expo-native-auth-hooks-moved.md

latest522 B
Original Source

The useSignInWithApple and useSignInWithGoogle hooks have been moved to dedicated entry points to avoid bundling optional dependencies.

Update your imports:

diff
- import { useSignInWithApple } from '@clerk/expo';
+ import { useSignInWithApple } from '@clerk/expo/apple';

- import { useSignInWithGoogle } from '@clerk/expo';
+ import { useSignInWithGoogle } from '@clerk/expo/google';

This change prevents expo-crypto and expo-apple-authentication from being bundled when not using native sign-in hooks.