Nick
Nick

Reputation: 174

Using Passwords in ReactJS

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 ?

Upvotes: 0

Views: 56

Answers (1)

wobsoriano
wobsoriano

Reputation: 13432

In short: No, you can't secure your client-side credentials.

Check this article

An option

  • Make the API calls server-side and then serve information to the client from there

Upvotes: 2

Related Questions