Skip to content

feat: magic link auto-login (no OTP needed if link clicked)#65

Merged
George-iam merged 2 commits intomainfrom
feat/magic-link-login-20260321
Mar 21, 2026
Merged

feat: magic link auto-login (no OTP needed if link clicked)#65
George-iam merged 2 commits intomainfrom
feat/magic-link-login-20260321

Conversation

@George-iam
Copy link
Contributor

Summary

  • CLI now polls GET /v1/auth/cli-grants/{grant_id} in parallel with OTP prompt
  • If user clicks magic link in email → CLI auto-detects and completes login
  • If user types OTP → works as before (backward compat)
  • Requires gateway PR to return grant_id in login-intent response + fix magic link URL

Test plan

  • axme login → type OTP → works as before
  • axme login → click magic link in email → CLI auto-completes login
  • axme login → let code expire → proper error message

George-iam and others added 2 commits March 21, 2026 21:13
When user clicks the magic link in email, CLI detects it automatically
via polling GET /v1/auth/cli-grants/{grant_id} every 2s. No need to
type the OTP code — whichever method completes first wins.

Also updated prompt text to mention the magic link option.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@George-iam George-iam merged commit 74d5ecd into main Mar 21, 2026
1 check passed
@George-iam George-iam deleted the feat/magic-link-login-20260321 branch March 21, 2026 21:15
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