I am trying to get the key from the url, it's not getting anything,
this is the browser url for e.g i want like this
auth/reset-password/finish?key=123
i am setting the Route like this
path: '/auth/reset-password/finish/:key?'
here is the main component
const key = queryString.parse('key', location.search);
if i did the console, it's giving me null
i did console log the location it's giving me like this
pathname: "/auth/reset-password/finish"
search: "?key=Hci5deBRQJSofcD0aVru"
hash: ""
state: undefined
__proto__: Object