feat: integrate PymtHouse authentication flow#50
Draft
eliteprox wants to merge 5 commits intofeat/studiofrom
Draft
feat: integrate PymtHouse authentication flow#50eliteprox wants to merge 5 commits intofeat/studiofrom
eliteprox wants to merge 5 commits intofeat/studiofrom
Conversation
…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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.