Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃摍 Clarification about how to use masterKey on JS SDK #880

Open
MrMartinR opened this issue Jun 24, 2022 · 0 comments
Open

馃摍 Clarification about how to use masterKey on JS SDK #880

MrMartinR opened this issue Jun 24, 2022 · 0 comments

Comments

@MrMartinR
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants