Skip to content

Google OAuth login does not persist provider connection state required by downstream integrations #493

@Ridanshi

Description

@Ridanshi

Summary

Google OAuth authentication succeeds but does not persist provider connection metadata in the same way as other integrations.

As a result, downstream functionality relying on provider connection state cannot consistently identify Google-linked accounts.

Affected Files

  • auth.ts
  • connect.ts

Root Cause

The Google login flow authenticates users successfully but does not persist equivalent provider metadata expected by downstream integration logic.

This creates inconsistencies between provider types.

Reproduction

  1. Authenticate using Google OAuth.
  2. Inspect provider connection records.
  3. Compare with GitHub-connected accounts.
  4. Observe missing or inconsistent connection state.

Expected Behavior

All OAuth providers should persist equivalent integration metadata.

Actual Behavior

Google-authenticated users can lack expected provider linkage information.

Why This Is Difficult To Detect

Authentication itself succeeds.

The issue only appears when integration-aware features are exercised.

Production Impact

  • Inconsistent provider behavior
  • Broken downstream features
  • Integration confusion
  • Hard-to-debug account state

Suggested Fix

Persist provider metadata consistently across all OAuth providers.

Severity

Medium-High

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions