Skip to content

[pull] main from fern-api:main#753

Merged
pull[bot] merged 6 commits into
code:mainfrom
fern-api:main
May 26, 2026
Merged

[pull] main from fern-api:main#753
pull[bot] merged 6 commits into
code:mainfrom
fern-api:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 26, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

patrickthornton and others added 6 commits May 26, 2026 16:42
* chore(ci): empty PR to verify ETE workflow

* fix(cli): bump fern-typescript-sdk init fallback from 2.3.2 to 3.71.2

The 2.3.2 image runs Node 20 and broke after mute-stream@4.0.0
(Node >=22) was published as a transitive dep, causing the post-
generation `yarn install` inside the container to fail. The fallback
only triggers when FDR cannot resolve a compatible generator version
(e.g., dev CLI builds with version 0.0.0), so released CLIs are
unaffected. 3.71.2 is the latest published TS SDK and runs on the
Node 24 image used by all current generator containers.

* test(cli): update ete snapshots for ts-sdk fallback bump to 3.71.2
#16036)

* fix(cli): fix false 'page was moved' warnings for versioned docs pages

Co-Authored-By: will.kendall@buildwithfern.com <wpk235@gmail.com>

* Versioned pages integration test

* Update todo

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: will.kendall@buildwithfern.com <wpk235@gmail.com>
Co-authored-by: Anar Kafkas <anarkafkas@gmail.com>
* feat(cli): add interactive login prompt with provider selection

When running `fern login` without an active Auth0 session, the CLI now
presents an interactive menu to choose a login provider:

  - Continue with GitHub
  - Continue with Google
  - Continue with Postman
  - Continue with SSO (prompts for email, resolves enterprise connection)

If an active Auth0 session exists, authentication completes silently as
before (via prompt=none silent auth check).

Non-TTY environments and --device-code / --email flags are unaffected.

Co-Authored-By: rishabh <rishabh@buildwithfern.com>

* fix: use local token check instead of browser-based silent auth

Replace prompt=none browser-based silent auth with isLoggedIn() check.
Previously, the CLI would open a browser tab with prompt=none to detect
an existing Auth0 session, causing a brief browser flash for users
without a session. Now the CLI checks the locally stored token instead:
- If a valid token exists → open browser directly (Auth0 session handles it)
- If no token → show the interactive prompt without touching the browser

Also removes the now-unused trySilentAuth(), NoSessionError, and
parseAuthResponse() from doAuth0LoginFlow.ts.

Co-Authored-By: rishabh <rishabh@buildwithfern.com>

* fix: add device-code fallback to interactive prompt path

Extract loginWithDeviceCodeFallback() helper that wraps doAuth0LoginFlow
with a try/catch falling back to doAuth0DeviceAuthorizationFlow. Both
the main login path and the interactive prompt path (promptAndLogin) now
use this helper, ensuring transient failures (port conflicts, browser
launch failures, Auth0 errors) fall back to device-code flow instead of
surfacing as hard errors.

Co-Authored-By: rishabh <rishabh@buildwithfern.com>

* fix(cli): address Claude review - forward connection to device-code fallback, validate email, fix Wizard message

Co-Authored-By: rishabh <rishabh@buildwithfern.com>

* fix(cli): trim email input in promptForEmail

Co-Authored-By: rishabh <rishabh@buildwithfern.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: rishabh <rishabh@buildwithfern.com>
@pull pull Bot locked and limited conversation to collaborators May 26, 2026
@pull pull Bot added the ⤵️ pull label May 26, 2026
@pull pull Bot merged commit 3cfece0 into code:main May 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant