docs icon indicating copy to clipboard operation
docs copied to clipboard

📙 Clarification about how to use masterKey on JS SDK

Open MrMartinR opened this issue 3 years ago • 0 comments

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

MrMartinR avatar Jun 24 '22 22:06 MrMartinR