Skip to content

Commit 59bf7d3

Browse files
committed
Make it clear that secret keys should not be used in client-side code
1 parent 965ac76 commit 59bf7d3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

source/index.html.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,8 @@ curl -n -sS -i -H 'Accept: application/vnd.betternow+json; version=1' \
248248
// we are seeing issues with your API client
249249
var yourEmailAddress = "<REPLACE WITH YOUR EMAIL>"
250250
251-
// You could also use your secret key here, if accessing an endpoint that
252-
// requires it.
253-
var publishableKey = "<REPLACE WITH YOUR API KEY>";
251+
// Only use your publishable key in client-side code
252+
var publishableKey = "<REPLACE WITH YOUR PUBLISHABLE API KEY>";
254253
255254
// This is just an example for retrieving a fundraiser. If you would
256255
// rather use another endpoint, you can change the url used in the

0 commit comments

Comments
 (0)