Skip to content

Commit

Permalink
Clarify error message about not exposing App Secret on non-trusted en…
Browse files Browse the repository at this point in the history
…vironments
  • Loading branch information
dwightgunning committed May 23, 2018
1 parent 0055c20 commit 0c90e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/client.js
Expand Up @@ -106,7 +106,7 @@ StreamClient.prototype = {

/* istanbul ignore next */
if (this.browser && this.apiSecret) {
throw new errors.FeedError('You are publicly sharing your private key. Dont use the private key while in the browser.');
throw new errors.FeedError('You are publicly sharing your App Secret. Do not expose the App Secret in browsers, "native" mobile apps, or other non-trusted environments.');
}
},

Expand Down

0 comments on commit 0c90e76

Please sign in to comment.