Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fallbackRedirect for blocked routes #162

Closed
wants to merge 1 commit into from

Conversation

vitorLostadaC
Copy link

Hello, WorkOS team!

I’m building my own UI, and I noticed an issue with the authentication middleware. It currently redirects users to the WorkOS authentication page by default.

To address this, I added a new property that allows overriding this URL, enabling me to redirect users to my custom sign-in route instead.

Let me know if there’s anything I should adjust or improve.

a-little-girl-is-sitting-in-a-bathtub-eating-a-cookie-and-making-a-funny-face

@PaulAsjes
Copy link
Collaborator

Hey there! Thanks for this, we're actually currently working on a fix for #47 that will also allow you to compose your middleware and redirect to custom URLs. I'm going to close this since a fix is already in the works, but thank you for contributing!

@PaulAsjes PaulAsjes closed this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants