HeadlinesBriefing favicon HeadlinesBriefing.com

How to Create a Clerk Project for Google Login on iPhone

DEV Community •
×

This tutorial explains how to configure a Clerk project for Google Sign-In on iOS, specifically for local Metro server development. The process involves creating a new Clerk project and building a dedicated Sign-In page that exclusively uses Google Login. A critical step is configuring SSO Connections within the Clerk Dashboard, where Google SSO is enabled by default.

Developers must add specific redirect URLs to the Google Cloud Console under 'Native Applications' to ensure proper authentication flow. For local development, these URLs include a custom scheme and the Expo Metro server address (exp://127.0.0.1:8081/--/oauth-native-callback). This configuration acts as a 'relay race baton,' securely handing off authentication data from Google back to the application, which is essential for enabling seamless OAuth on iOS devices.