Skip to content

Conversation

@pedrobando
Copy link

@pedrobando pedrobando commented Jan 11, 2026

No description provided.

pedrobando and others added 30 commits January 5, 2026 23:50
- Updated settings page to accept provider and code query parameters
- Added OAuth flow initiation when provider=GENERIC is detected
- Implemented authorization code exchange for existing users
- Added redirect logic for new user registration flow
- Fixed infinite loading spinner issue during SSO login from DashBrew
- Added proper error handling and user feedback for OAuth failures

This enables seamless SSO authentication from DashBrew to Postiz.
- Added toast to initiateOAuthFlow dependencies
- Added toast to handleOAuthCallback dependencies
- Fixes build error during deployment
- Moved useEffect after callback definitions
- Added eslint-disable comment for exhaustive-deps
- Fixes 'React Hook used before definition' build error
Testing if build failure is caused by OAuth implementation or pre-existing issue
- Changed OAuth redirect_uri from /settings to /auth?provider=generic
- The /auth page already has OAuth callback handling in register.tsx
- Added handling for existing users (login=true) to redirect to dashboard
- New users still see the registration form to enter company name

This fixes the 404 error when trying to login/register with Dashbrew OAuth.
- Added POST /auth/token endpoint to validate JWT tokens from external SSO
- Added validateAndRefreshToken method to auth service
- Updated register.tsx to handle 'token' URL parameter for SSO callbacks
- This enables login from Dashbrew which sends JWT tokens directly

When logging in from Dashbrew, users are redirected with a JWT token
in the URL. The frontend now detects this, validates the token via
the new endpoint, and redirects to the dashboard.
- Restored OAuth SSO handling in settings.component.tsx
- Settings page now properly handles /settings?provider=GENERIC flow
- When provider param is present, initiates OAuth authorization flow
- When code param is present, exchanges code for token
- Fixed GitHub Actions hashFiles timeout by simplifying cache key
  (removed **/*.js pattern that was scanning node_modules)

This enables the full OAuth flow when DashBrew redirects to:
https://social.dashbrew.app/settings?provider=GENERIC
@vercel
Copy link

vercel bot commented Jan 11, 2026

@claude is attempting to deploy a commit to the Listinai Team on Vercel.

A member of the Team first needs to authorize it.

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.

2 participants