Skip to content

Brand Auth0 login/signup and wire the animated auth screens - #44

Merged
eliteprox merged 4 commits into
mainfrom
feat/login-branding
Sep 4, 2026
Merged

Brand Auth0 login/signup and wire the animated auth screens#44
eliteprox merged 4 commits into
mainfrom
feat/login-branding

Conversation

@eliteprox

@eliteprox eliteprox commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Inspired by #43 (frontend-only animated auth screens). This PR takes that design and wires it to the real Auth0 flow.

  • Split the sign-in / sign-up UI into AuthPanel + AuthMediaRing and keep /login and /signup as branded console pages that hand off to Auth0
  • Add Auth0 Universal Login branding (theme, copy, logo/favicon) so the hosted login matches the console
  • Centralize auth hrefs and open-redirect-safe returnTo in lib/console/auth-login.ts; signed-out users hit /login instead of flashing console chrome
  • Redirect already-signed-in visitors (and MCP OAuth) through to their destination instead of re-showing the wall

Test plan

  • Signed-out visit to / or /install lands on /login without a sidebar flash
  • Sign in / Sign up CTAs go to /login and /signup, then hand off to Auth0
  • Auth0 hosted login uses the new branding (logo, colors, copy)
  • After Auth0, returnTo lands on a same-origin path (rejects //evil / absolute URLs)
  • Already signed-in visit to /login or /signup redirects to /home (or MCP callback when mcp_oauth=1)
  • CONSOLE_DEV_MOCK=1 still reaches the mocked dashboard

…th0 integration

- Changed login and signup routes from `/login` and `/signup` to `/auth/login` and `/auth/signup`.
- Updated middleware to redirect to Auth0 for authentication.
- Refactored components to utilize new authentication links and improved user experience.
- Added branding and localization for Auth0 login and signup pages.
- Introduced new AuthPanel and AuthMediaRing components for better UI handling.

This commit enhances the authentication flow by integrating Auth0, ensuring a seamless user experience during sign-in and sign-up processes.
…perience

- Updated authentication routes to use `/login` and `/signup` instead of `/auth/login` and `/auth/signup`.
- Enhanced middleware to redirect signed-out users to `/login`.
- Refactored components to utilize new authentication links and improve UI consistency.
- Introduced `safeReturnTo` function to ensure safe redirection paths.
- Added tests for authentication link functions and safe return logic.

This commit streamlines the authentication process and enhances the overall user experience by ensuring consistent routing and improved handling of authentication flows.
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
console Ready Ready Preview Sep 4, 2026 9:14pm UTC

Request Review

- Changed logo and favicon URLs in branding.json and theme.json to point to the new Livepeer console URL.
- Ensured consistency across branding assets for a unified user experience.

This commit aligns the branding resources with the current Livepeer console, enhancing the visual identity of the application.
@eliteprox eliteprox changed the title Refactor authentication routes and components for improved UX Brand Auth0 login/signup and wire the animated auth screens Sep 4, 2026
- Introduced a new GitHubIcon component for rendering the GitHub logo.
- Updated AuthPanel to include a sign-in/sign-up option for GitHub, linking to the appropriate authentication route.
- Enhanced tests to cover the new GitHub authentication link.

This commit expands the authentication options available to users, improving the overall user experience by integrating GitHub as a login provider.
@eliteprox
eliteprox merged commit c09dcdb into main Sep 4, 2026
1 check was pending
@eliteprox
eliteprox deleted the feat/login-branding branch September 5, 2026 06:19
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