Validating routes in search params #3903
Unanswered
ldhwaddell
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a preferred way of guaranteeing that a passed search param is a valid route? I am interested in passing a callback URL through the search params to be used as a redircet for the user if authentication is a success.
If I just wanted to ensure a string was passed, it would be easy enough to do:
Beta Was this translation helpful? Give feedback.
All reactions