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
deep-jade•2mo ago
why is it not a redirect?
removing it from search means navigating to a different url
like-goldOP•2mo ago
So what I’m doing is correct?
deep-jade•2mo ago
i dont see an issue with this