Jahill
Jahill

Reputation: 78

amazon-cognito-identity-js on React frontend

Is it safe to use amazon-cognito-identity-js on a frontend application given that it will have your user pool and client ID?

I am trying to use Cognito in my React app (with a Python backend). I was hoping to keep the Cognito services on the frontend and have my backend authenticate on the users token. Is this possible with amazon-cognito-identity-js or should I instead use Amplify? (Or is there an SDK I can use for my Python backend for Cognito?)

Upvotes: 0

Views: 760

Answers (1)

Jahill
Jahill

Reputation: 78

I've found this answer which seems to explain how user pool and client ID are not secrets and can be stored on a frontend service. So the answer is yes, it is safe.

Upvotes: 0

Related Questions