Skip to content

Commit ddf7841

Browse files
fix: use TAppState generic in ConnectAccountRedirectResult type
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.
1 parent f38b49f commit ddf7841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/auth0-angular/src/lib/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export class AuthService<TAppState extends AppState = AppState>
309309
handleRedirectCallback(
310310
url?: string
311311
): Observable<
312-
RedirectLoginResult<TAppState> | ConnectAccountRedirectResult<AppState>
312+
RedirectLoginResult<TAppState> | ConnectAccountRedirectResult<TAppState>
313313
> {
314314
return defer(() =>
315315
this.auth0Client.handleRedirectCallback<TAppState>(url)

0 commit comments

Comments
 (0)