Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

📙 Clarification about how to use masterKey on JS SDK

未关闭
#880 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
documentation

调研方向

从链接的 JavaScript Guide 部分开始,结合报告中的 Node.js 设置检查其中的 Parse.initialize 示例。明确浏览器 SDK 与 Node.js SDK 用法之间的区别,然后验证文档中的示例是否与受支持的 master-key 配置一致。当读者无需依赖 Stack Overflow 链接即可选择正确的设置时,这项工作就完成了。

由索引模型根据 Issue 内容生成。

描述

docs:sdk-js

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

主要语言
SCSS
星标
317
派生
506
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

parse-community/docs 的其他 Issue

查看 parse-community/docs 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。