Skip to content

FR-22407 - Fix bypass rules for will-known routes and getInitialProps for pages architecture - #434

Merged
mariavlasov merged 3 commits into
masterfrom
FR-22407-fix-bypass-rules
Oct 19, 2025
Merged

FR-22407 - Fix bypass rules for will-known routes and getInitialProps for pages architecture#434
mariavlasov merged 3 commits into
masterfrom
FR-22407-fix-bypass-rules

Conversation

@frontegg-david

@frontegg-david frontegg-david commented Oct 19, 2025

Copy link
Copy Markdown
Collaborator

Fix bypass rules for will-known routes and getInitialProps for pages architecture


Note

Adds bypass handling for .well-known routes and pages getInitialProps, integrates it into withFronteggApp, and fixes hosted login refresh token parameter names.

  • Next.js routing/middleware:
    • Add .well-known route bypass in edge/shouldBypassMiddleware.ts with bypassWillKnownRoutes option; include in default options and checks.
    • New pages/withFronteggApp/shouldBypassGetInitialProps.ts to bypass getInitialProps for _next/*, favicon.ico, and .well-known, with prefetch handling and logging.
    • Integrate bypass into withFronteggApp.tsx: early-return page props when bypassed; add debug logger and minor refactors.
  • API:
    • In api/index.ts, rename refresh_tokenrefreshToken and cliendIdclientId in refreshTokenHostedLogin signature and usage.

Written by Cursor Bugbot for commit 1848c0f. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

@mariavlasov
mariavlasov merged commit 0bec7e1 into master Oct 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants