Skip to content

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

Description

@MrMartinR

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions