Skip to content

feat: Add AgentPass login button to login page#87

Open
kai-agent-free wants to merge 1 commit intoprofullstack:masterfrom
kai-agent-free:feat/agentpass-login-button
Open

feat: Add AgentPass login button to login page#87
kai-agent-free wants to merge 1 commit intoprofullstack:masterfrom
kai-agent-free:feat/agentpass-login-button

Conversation

@kai-agent-free
Copy link
Copy Markdown
Contributor

Adds an AgentPass login button on the /login page, next to the existing CoinPay button.

What's included

  • Login button on /login — 'Sign in with AgentPass' (blue key icon)
  • /agent-login page — form for passport ID + private key
  • /api/auth/agentpass-login route — server-side auth:
    • Generates HMAC signature from private key
    • Verifies against AgentPass API public key
    • Finds or creates user (consistent with CoinPay OAuth flow — temp password, welcome email, API key)
    • Establishes browser session via Supabase magic link

Flow

  1. User clicks 'Sign in with AgentPass' on login page
  2. Enters passport ID + private key on /agent-login
  3. Server verifies signature, creates/finds account
  4. Redirects to dashboard with active session

Private key is used only for signature generation and is never stored.

Links to agentpass.space for agents who need a passport.

- Add 'Sign in with AgentPass' button on /login (next to CoinPay)
- Create /agent-login page with passport ID + private key form
- Create /api/auth/agentpass-login route:
  - Verifies HMAC signature against AgentPass API
  - Finds or creates user (consistent with CoinPay flow)
  - Establishes session via Supabase magic link
- Links to agentpass.space for new passport creation
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