Skip to content

Handle custom redirectURL overrides in redirect URI matching logic #224

@coderabbitai

Description

@coderabbitai

Context

This issue tracks an enhancement to handle custom redirectURL overrides in the redirect URI matching logic introduced in PR #223.

Problem

The login and register methods allow callers to pass a custom options.redirectURL parameter. However, the new redirect URI matching logic in KindeProvider.tsx only checks against the module-level redirectUri prop. This means callbacks to a per-call redirect URL would skip code handling.

Proposed Solution

Persist the effective redirect URL used for each auth request (e.g., in session/local storage or encoded in the state parameter) and match against that value (or an allowed list) during the redirect handling phase.

References

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions