fix: update dashboard card to match Platform API Keys naming

- Rename "API Keys" card to "Platform API Keys" on dashboard overview
- Update description to be more specific about use case
- Add localhost:3002 to trusted origins for local development
This commit is contained in:
Ajax Davis 2026-01-14 07:47:30 +10:00
parent f8bfbc3ed2
commit bcfa99677c
2 changed files with 3 additions and 3 deletions

View file

@ -88,9 +88,9 @@ export default function DashboardPage(): React.ReactElement {
className="text-foreground-tertiary group-hover:text-primary group-hover:translate-x-1 transition-all"
/>
</div>
<h3 className="text-lg font-semibold text-foreground mb-1">API Keys</h3>
<h3 className="text-lg font-semibold text-foreground mb-1">Platform API Keys</h3>
<p className="text-sm text-foreground-secondary">
Generate keys for programmatic API access
Generate keys to access TPMJS from scripts and CI/CD
</p>
</div>
</Link>

View file

@ -42,7 +42,7 @@ export const auth = betterAuth({
maxAge: 60 * 5, // 5 minutes
},
},
trustedOrigins: ['https://tpmjs.com', 'http://localhost:3000'],
trustedOrigins: ['https://tpmjs.com', 'http://localhost:3000', 'http://localhost:3002'],
advanced: {
defaultCookieAttributes: {
sameSite: 'lax',