question

Kailash avatar image
Kailash asked ·

Is it safe to do "setClientId" in javascript files?

Hi,

I am making a website in which I am using "Login with Amazon" and using the method "setClientId" to set my client id. I want to know is it safe to set the client id in javascript file since it can be read anyone on the internet?


Thanks

Kailash

amazon appstorelogin with amazon
1 comment
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Anurag avatar image
Anurag answered ·

Hi,

Yes, it is safe to setClientId() from the JS code. But please keep the Client Secret safe, and never put it in the JS files.

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.