[pull] main from fern-api:main#753
Merged
Merged
Conversation
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )