Skip to content

Conversation

@yogeshchoudhary147
Copy link
Contributor

Changes

Fixed type inconsistency in handleRedirectCallback return type (line 312-313):

// Before
ConnectAccountRedirectResult<AppState>

// After
ConnectAccountRedirectResult<TAppState>

Why

Both union types should use the same generic parameter for type safety and consistency with RedirectLoginResult<TAppState>.

Impact

  • Improves type inference when extending AppState
  • No runtime changes
  • No breaking changes

Changed ConnectAccountRedirectResult<AppState> to ConnectAccountRedirectResult<TAppState>
in handleRedirectCallback return type for consistency with RedirectLoginResult<TAppState>.

This ensures both union types respect the generic parameter, maintaining type safety
when consumers extend AppState with custom properties.
@yogeshchoudhary147 yogeshchoudhary147 requested a review from a team as a code owner December 22, 2025 08:03
@yogeshchoudhary147 yogeshchoudhary147 merged commit 4b2dd8c into main Dec 22, 2025
8 of 9 checks passed
@yogeshchoudhary147 yogeshchoudhary147 deleted the fix/handle-redirect-callback-generic-type branch December 22, 2025 14:11
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.

3 participants