I want to create an application that will connect to AWS to use certain services. If I were to hardcode the credentials in a ReactJS file, would it be publicly visible to the end user ? What is the best way to store and use such sensitive information on a ReactJS Application ?
-
I don't know of a way to include credentials in ReactJS without exposing them. Typically you would require your user to authenticate in some way (username/password, OAuth, etc.) and your authentication service would return a token, which you then use to access restricted services. The token has an expiration date and can be manually invalidated if necessary.Troy Carlson– Troy Carlson2018-06-06 01:35:57 +00:00Commented Jun 6, 2018 at 1:35
Add a comment
|