You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On successful auth using withMiddlewareAuthRequiredFactory, I want to returnTo my own specified URL, but cannot because withMiddlewareAuthRequiredFactoryhard-codes a value.
Describe the ideal solution
Support an input into the middleware constructor OR (better) the middleware fn itself to accept a returnTo param, as with similar APIs in this SDK.
Alternatives and current workarounds
I have to redirect or nav my user from within my application, which is undesirable because it adds a highly undesirable entry into my user's navigation history/stack.
Additional context
This is for the next@beta, at the time of writing!
The text was updated successfully, but these errors were encountered:
Yep, since we support a returnTo in withPageAuthRequired, I don't see why we can't support the option here. I'm not sure when we might be able to get round it, bit will leave this open as an enhancement.
Checklist
Describe the problem you'd like to have solved
On successful auth using
withMiddlewareAuthRequiredFactory
, I want toreturnTo
my own specified URL, but cannot becausewithMiddlewareAuthRequiredFactory
hard-codes a value.Describe the ideal solution
Support an input into the middleware constructor OR (better) the middleware fn itself to accept a returnTo param, as with similar APIs in this SDK.
Alternatives and current workarounds
I have to redirect or nav my user from within my application, which is undesirable because it adds a highly undesirable entry into my user's navigation history/stack.
Additional context
This is for the next@beta, at the time of writing!
The text was updated successfully, but these errors were encountered: