Skip to content

refactor(auth): update Google authentication handling and improve tests#1534

Draft
tyler-dane wants to merge 1 commit intomainfrom
refactor/status-handling
Draft

refactor(auth): update Google authentication handling and improve tests#1534
tyler-dane wants to merge 1 commit intomainfrom
refactor/status-handling

Conversation

@tyler-dane
Copy link
Contributor

@tyler-dane tyler-dane commented Mar 13, 2026

(Codex's version)

  • Renamed sessionUserId to compassUserId in parseReconnectGoogleParams for clarity.
  • Refactored CompassAuthService to enhance Google connection assessment and streamline authentication modes.
  • Introduced determineGoogleAuthMode to manage different authentication scenarios, including new user sign-ups and reconnect repairs.
  • Updated tests to reflect changes in authentication logic and ensure accurate handling of Google sign-in success scenarios.
  • Removed deprecated Google auth intent handling from various components and hooks for cleaner code.

Co-authored-by: Tyler Dane tyler-dane@users.noreply.github.com

- Renamed `sessionUserId` to `compassUserId` in `parseReconnectGoogleParams` for clarity.
- Refactored `CompassAuthService` to enhance Google connection assessment and streamline authentication modes.
- Introduced `determineGoogleAuthMode` to manage different authentication scenarios, including new user sign-ups and reconnect repairs.
- Updated tests to reflect changes in authentication logic and ensure accurate handling of Google sign-in success scenarios.
- Removed deprecated Google auth intent handling from various components and hooks for cleaner code.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
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