DEV Community

Cathy Lai
Cathy Lai

Posted on

Login with Google on an iPhone (Local Metro Server + Dev Build) - Part 1/7: Install

Install packages

If you use bun:

bun add @clerk/clerk-expo expo-secure-store expo-web-browser expo-linking expo-crypto
Enter fullscreen mode Exit fullscreen mode
  • @clerk/clerk-expo: Clerk client + hooks
  • expo-secure-store: secure token storage (Clerk token cache)
  • expo-web-browser: opens browser for OAuth and returns to the app
  • expo-linking: create deep links for redirects
  • expo-crypto: used by some auth flows / dependencies

Refer to this article for reasons on why those packages are needed :
Login with Google OAuth using Expo, Clerk, and iOS — Finally Demystified

Confirm Expo Router plugin

In app.json, you should have:

  • plugins: ["expo-router", ...]

Top comments (0)