Skip to content

Conversation

@cloud303-psupinski
Copy link

Summary

  • Add MachineToken model to Prisma schema
  • Add /v1/machine-tokens CRUD endpoints (create, list, get, update, delete, rotate)
  • Register machineTokenRoutes in api.ts

Enables Docker containers and CLI tools to authenticate using bearer tokens created via the happy-tsk Settings UI, removing the need for OAuth redirect URLs in headless environments.

Test plan

  • Run prisma db push to create the MachineToken table
  • POST /v1/machine-tokens with auth returns a token
  • GET /v1/machine-tokens lists user tokens without exposing values
  • DELETE /v1/machine-tokens/:id revokes and invalidates the token
  • POST /v1/machine-tokens/:id/rotate generates new token, invalidates old
  • happy-client connects successfully using machine token

🤖 Generated with Claude Code

- Add MachineToken model to Prisma schema
- Add /v1/machine-tokens CRUD endpoints (create, list, get, update, delete, rotate)
- Register machineTokenRoutes in api.ts

Enables Docker containers and CLI tools to authenticate using
bearer tokens created via the happy-tsk Settings UI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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