parse-community / docs

Parse Platform docs
https://docs.parseplatform.org
Other
313 stars 518 forks source link

📙 Clarification about how to use masterKey on JS SDK #880

Open MrMartinR opened 2 years ago

MrMartinR commented 2 years ago

Link to section: https://docs.parseplatform.org/js/guide/

What is the issue? I've been trying to use the masterKey on the JS SDK using the info in the docs Parse.initialize("YOUR_APP_ID", "YOUR_JAVASCRIPT_KEY", "YOUR_MASTERKEY"); and didn't work. Can you propose a solution? I did find this https://stackoverflow.com/questions/40223311/parse-js-sdk-cannot-use-the-master-key-it-has-not-been-provided where states This actually works with browser SDK. The nodejs version requires the normal initialization no idea what browser SDK means... the solution in StackOverflow worked for me Parse.initialize(process.env.PARSE_APP_ID) Parse.masterKey = process.env.PARSE_SERVER_MASTER_KEY