Skip to content

Conversation

@EricWittmann
Copy link
Member

Summary

  • Adds optional onRedirect callback to OidcAuthOptions interface
  • Enables custom client-side navigation after OIDC authentication
  • Allows seamless integration with React Router and other routing libraries
  • Maintains backwards compatibility by defaulting to window.location.href

Test plan

  • Test OIDC authentication flow without custom redirect (should use default behavior)
  • Test OIDC authentication with custom redirect handler (e.g., React Router's navigate)
  • Verify state-based redirection still works correctly
  • Verify stored location is properly retrieved and used for redirection

🤖 Generated with Claude Code

Introduces an optional `onRedirect` callback in OidcAuthOptions to allow
custom client-side navigation after OIDC authentication. This enables
integration with React Router and other routing libraries without forcing
a full page reload.

When not provided, defaults to the existing behavior of using
window.location.href for backwards compatibility.
@EricWittmann EricWittmann merged commit fa0f13f into main Jan 8, 2026
1 check passed
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