Solution skill
Infinite redirect to sign-in: your public-route matcher does not cover the sign-in page itself
Complete solution
Every page bounces to sign-in, including the sign-in page. The app is completely unusable and the cause is one missing matcher entry. Not the full reference manual.
TL;DR: Every page bounces to sign-in, including the sign-in page. The app is completely unusable and the cause is one missing matcher entry. Confirm the cause 1. Open your middleware file and read the isPublicRoute list (built with createRouteMatcher).
The fix
- Open your middleware file and read the
isPublicRoutelist (built withcreateRouteMatcher). - Check that it includes every route rendering sign-in/sign-up UI, with catch-all patterns: '/sign-in(.)' and '/sign-up(.)', not just the bare paths.
- Check the root '/' if your landing page is public, and your webhook endpoint path (webhooks must stay public; they authenticate via Svix signatures, not sessions).
- Use the inverted pattern, which is the safe default: protect everything EXCEPT the public list.
- This covers exactly what the title says: Infinite redirect to sign-in.
- You are setting this up for the first time, or auditing an existing setup.
- You want the key gotchas in one place before you start.
- You are doing a different workflow with Infinite; these steps are specific to the title above.
- You need the full reference docs; this is the short path, not the manual.
- Not pinned to a specific version; follows current Infinite behavior.
When to use this
- This covers exactly what the title says: Infinite redirect to sign-in.
- You are setting this up for the first time, or auditing an existing setup.
- You want the key gotchas in one place before you start.
When not to use this
- You are doing a different workflow with Infinite; these steps are specific to the title above.
- You need the full reference docs; this is the short path, not the manual.
Evidence
Verified against Clerk middleware docs and community guides 2026-09-26: the documented pattern is createRouteMatcher for public routes with if (!isPublicRoute(req)) await auth.protect() inside clerkMiddleware. The sign-in/sign-up catch-all routes must be public or the middleware redirects the auth pages themselves.
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_Bd45XBG899ensExU_43KpA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Infinite redirect to sign-in: your public-route matcher does not cover the sign-in page itself <span>— Vectle</span></a>