Title: How to pass url params in secure way in react
Tags: reactjs;react-router-dom
Question: I am working on a react application. I have a route like this 
```/dashboard/:name/:id/:role``` and if I open this link like this ```/dashboard/Ram/32142/Plumber```. So here from URL params, I am getting user details. Is there any secure way to pass params using react-router.



Here is another answer: You can use ```this.props.match.params.name```

Comment for this answer: @skyshine Until and unless it is on client-side it is not secure. Anyone can read it. So, we should avoid any such information on client side.
Comment for this answer: I can access using this.props.match.params.name.But here my question how to pass params in secure way like "/dashboard/ewrew/234322/ewoirewr"
Comment for this answer: In web using route params only we identify user related details. Here i am asking secure way like making base64 encoding string

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2020:00:06/11/20', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<reactjs><react-router-dom>', 'Title': 'How to pass url params in secure way in react', 'ViewCount': 264, 'id': 62319785, 'user_AboutMe': '', 'user_AccountId': 3583415.0, 'user_DisplayName': 'skyshine', 'user_Reputation': 2611.0, 'user_Views': 393.0, 'user_id': 2991069.0}}