Skip to content

Conversation

joelclermont
Copy link
Contributor

If a single Laravel app instance runs under multiple domains, it is useful to be able to redirect them back to the correct domain after authenticating at WorkOS.

Currently the redirect URL is specified in config. In order to dynamically change it, you have to override the config value before calling $request->redirect()

This small PR adds one additional option following the same pattern as the other options already supported.

Tests were updated.

@taylorotwell taylorotwell merged commit de380cc into laravel:main Sep 17, 2025
9 checks passed
@joelclermont joelclermont deleted the allow-login-redirecturl-customization branch September 17, 2025 14:42
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