Why am I stuck in an authentication loop when accessing admin options?

Topic summary

Issue: Infinite authentication loop when trying to access Shopify admin options in a Remix boilerplate app.

  • Expected flow: /app → /auth/login → /app/additional → submit form (action runs) → remain on /app/additional.

  • Actual flow: /app → /auth/login → /app/additional → submit form → loader hits const { admin } = await authenticate.admin(request); → forced back to /auth/login → re-enter credentials → repeats.

  • Key point: The loop appears to be triggered specifically when authenticate.admin(request) is called during the form submission on /app/additional.

  • Environment/context: Using the Remix boilerplate template; working with Shopify admin authentication.

  • Community feedback: Multiple users report the same behavior and ask if a fix was found. One screenshot was shared, but no technical details were provided.

  • Outcome/status: No solution, workaround, or root cause identified in the thread. No code changes or configuration steps are proposed. Discussion remains open with unanswered questions about why authenticate.admin redirects repeatedly.

Summarized with AI on December 21. AI used: gpt-5.

Hey y’all!

I’ve been running into a frustrating issue where requesting the admin option from shopify sends me into an infinite authentication loop.

Note: I am working off the remix boilerplate template

Expected behavior:

  1. land at /app

  2. redirect to /auth/login

  3. redirect to /app/additional

  4. submit form and call action function

  5. stay on /app/additional

Actual behavior:

  1. land at /app

  2. redirect to /auth/login

  3. redirect to /app/additional

  4. submit form and call action function

  5. /app/additional form loader runs until

const { admin } = await authenticate.admin(request); is called
6. redirect to /auth/login
7. enter credentials
8. repeat steps 5-7 until tempted to chuck laptop out window

Any theories as to what might be causing this behavior/what I can investigate to resolve?

Thanks!!

Hey, Did you managed to solve this problem? I am facing this problem too.

I am also fecing same issue here

could any one help me about this

Did you resolve it?

I am also facing same issue.

@carecare Did you resolve it?