Skip to content

feat: integrate PymtHouse authentication flow#50

Draft
eliteprox wants to merge 5 commits intofeat/studiofrom
feat/pymthouse-device-code
Draft

feat: integrate PymtHouse authentication flow#50
eliteprox wants to merge 5 commits intofeat/studiofrom
feat/pymthouse-device-code

Conversation

@eliteprox
Copy link
Copy Markdown

Added support for PymtHouse integration, including new environment variables for issuer URL and client IDs. Implemented device login approval and completion routes, along with user session management. Updated the login page to handle device flow and improved the AuthContext for better state management. Enhanced the API for token management and usage tracking, ensuring a seamless user experience across the application.

…agement

Added support for PymtHouse integration, including new environment variables for issuer URL and client IDs. Implemented device login approval and completion routes, along with user session management. Updated the login page to handle device flow and improved the AuthContext for better state management. Enhanced the API for token management and usage tracking, ensuring a seamless user experience across the application.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
website Ready Ready Preview, Comment Apr 21, 2026 1:13am

Request Review

Updated the device approval process by introducing a new utility function for completing studio device approvals with Pymthouse. This change centralizes the logic for user approval and JWT minting, improving code maintainability. Enhanced session management by applying session cookies consistently across device approval routes. Adjusted the login page to handle device flow more effectively, ensuring a smoother user experience during authentication.
…tion

Enhanced the PymtHouse integration by adding a new dependency for the builder API and updating the environment configuration in `.env.example`. Improved the `.gitignore` to exclude certificate files. Refactored API routes to utilize the new builder API for device approval and session management, ensuring a more streamlined authentication process. Removed outdated PmtHouse client code and related files to simplify the codebase.
Refactored the login page to support device flow authentication, introducing a new `DeviceFlowLoadingScreen` component for improved user experience during device login. Updated the `LoginRoute` to conditionally render based on connection status and device flow parameters. Added loading indicators to enhance feedback during authentication processes.
…g states

Updated the UsageTab component to utilize a new `normalizeUsagePayload` function for better data management. Refactored state handling for usage data, ensuring default values are set correctly. Enhanced loading indicators and conditional rendering for improved user experience during data fetching. Removed unused mock data imports and streamlined the code for clarity.
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