DEV Community

Cathy Lai
Cathy Lai

Posted on

Login with Google on an iPhone (Local Metro server + Dev Build) - Part 2/7: Create a Clerk Project

  • Create a new project

  • Build the SignIn Page (only Google Login for now)

  • On the Dashboard, go to "Configure" -> "SSO Connections"
    The Google should be available under SSO (Single Sign On) already
    SSO Connections

  • Now we need to add the Redirect URLs
    This is to tell Google where to hand the "baton" after they finish their segment in the "race". Refer to this article on the analogy: Login with Google OAuth using Expo, Clerk, and iOS — Finally Demystified

  • Find under “Developers“ -> ”Native Applications“

(!this is only for Metro local server for now. For future Production version it'd be "Web Applications")

  • Add the Redirect URLs ("The Relay Race Baton")

It'd be

- "[scheme]://oauth-native-callback" and
- "exp://127.0.0.1:8081/--/oauth-native-callback"
Enter fullscreen mode Exit fullscreen mode

  • The [scheme] will match to the scheme in app.json

Top comments (2)

Collapse
 
usama_dev profile image
Usama

Nice visual explain I'm planning to use Clerk within one of my projects very soon.

Collapse
 
cathylai profile image
Cathy Lai

Great! Looking forward to reading about your project!