Skip to content

Fix login flow#134

Open
satyaog wants to merge 1 commit intomila-iqia:masterfrom
satyaog:login
Open

Fix login flow#134
satyaog wants to merge 1 commit intomila-iqia:masterfrom
satyaog:login

Conversation

@satyaog
Copy link
Copy Markdown
Member

@satyaog satyaog commented Feb 3, 2026

Fix login flow: async + single /token endpoint

  • Make login() async and use await in Login.run() so the CLI correctly waits for the login result.
  • Use a single /token?headless=true endpoint instead of /auth/login and /auth/login?headless=true.
  • Simplify behavior: always call the token endpoint, then if headless or webbrowser.open() fails, print the login URL for the user; remove the “retry with headless” path.
  • Return refresh_token from the token response instead of access_token.

@satyaog
Copy link
Copy Markdown
Member Author

satyaog commented Feb 3, 2026

Depends on mila-iqia/easy-oauth#2

@satyaog satyaog changed the base branch from v3 to master February 18, 2026 20:11
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.

1 participant