Remove search params from url on beforeLoad
What is the preferred way of deleting search params from the URL?
We have implemented a magic link auth system that basically adds the JWT token to the URL, I set this JWT token in localstorage and it handle by the API.
But i dont want this token to be in the URL the whole time so i want to delete it as soon as its added to localstorage.
3 Replies
rising-crimson•2d ago
why is it not a redirect?
removing it from search means navigating to a different url
sunny-greenOP•2d ago
So what I’m doing is correct?
rising-crimson•2d ago
i dont see an issue with this