How to skip login page for Google OAuth on Grow plan?

Hi,

I have a custom OTP login flow on my Shopify store (Grow plan, new customer accounts).

Here is my current flow:

  1. Customer enters phone number
  2. MSG91 sends OTP
  3. OTP verifies via my Vercel backend
  4. Backend looks up customer by phone, returns their email + detects Gmail
  5. For Gmail customers, I want to skip Shopify’s login page entirely and log them in directly via Google OAuth

What I have tried:

  • Redirecting to /customer_authentication/login?email=xxx (shows login page, not automatic)
  • Using the Google OAuth URL from Shopify’s login page HTML: account.vedicspoons.com/authentication/social/google?authorize_uri=… (works sometimes but gives “login error” because buyer_flags token expires)
  • Fetching the login page server-side to extract fresh URL (gets 403 blocked)
  • Fetching the login page client-side (page is JS-rendered, Google URL not in raw HTML)

My question:
Is there any way to programmatically trigger Google OAuth login on Shopify Grow plan without showing the intermediate login page?

Specifically — is there a stable Google OAuth endpoint URL for new customer accounts that doesn’t use expiring tokens?

My store: vedicspoons.com
Plan: Grow (new customer accounts)

Hi @vedicspoons101,

I don’t think this is possible on the Shopify Grow plan.

With new customer accounts, the Google login flow is controlled by Shopify, and the social login URL uses temporary/session-based parameters for security. That is why extracting or reusing the Google OAuth URL can fail with expired tokens or login errors.

There does not appear to be a stable public Google OAuth endpoint that can be used to bypass Shopify’s customer login page and log the customer in directly.

For this use case, the safer approach is to redirect the customer to Shopify’s normal customer login flow and let them choose Google there. If you need to fully replace Shopify’s default sign-in experience with your own identity provider, that is generally a Shopify Plus-level feature, not available on Grow.

So in short: you can customize the OTP flow before login, but you cannot programmatically force/skip directly into Google OAuth for Shopify new customer accounts on Grow.

Hey @vedicspoons101 ,
Shopify does not allow direct triggering of Google OAuth or bypassing the authentication screen. The login flow is session based and controlled by Shopify for security reasons. The only stable and supported solution is to use Shopify’s native customer authentication flow and let Google login happen within that system. Your current OTP flow can remain as a pre auth step but final login must go through Shopify’s authentication endpoint.
Thank You !