Skip to content

Implement API key validation system#3

Merged
pmarquees merged 1 commit intomainfrom
claude/issue-2-20250523_124508
May 23, 2025
Merged

Implement API key validation system#3
pmarquees merged 1 commit intomainfrom
claude/issue-2-20250523_124508

Conversation

@pmarquees
Copy link
Owner

Implements comprehensive API key authentication system for the Promptly API.

Features

  • API key generation and management in settings
  • Bearer token authentication for all API endpoints
  • User data isolation and security
  • Complete UI for key management

Changes

  • Added ApiKey database model
  • Created authentication middleware
  • Updated 10+ API routes with authentication
  • Added settings page with key management UI
  • Enhanced navigation and user menu

Fixes #2

Generated with Claude Code

- Add ApiKey model to database schema with user relation
- Create API authentication utility with bearer token validation
- Add API key management endpoints (create, list, delete)
- Implement settings page with API key management UI
- Update navigation to include settings page and user menu
- Add API key authentication to prompt endpoints
- Restrict API access to authenticated users' own data

Co-authored-by: pmarquees <pmarquees@users.noreply.github.com>
@vercel
Copy link
Contributor

vercel bot commented May 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
promptly ❌ Failed (Inspect) May 23, 2025 0:57am
v0-promptly ❌ Failed (Inspect) May 23, 2025 0:57am

@pmarquees pmarquees merged commit bd3b2e3 into main May 23, 2025
1 of 3 checks passed
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.

Add API Key validation

1 participant