Skip to content

remove missleading masterkey documentation #519

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/dart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ It's possible to add other parameters to work with your instance of Parse Server
await Parse().initialize(
keyApplicationId,
keyParseServerUrl,
masterKey: keyParseMasterKey, // Required for Back4App and others
clientKey: keyParseClientKey, // Required for some setups
debug: true, // When enabled, prints logs to console
liveQueryUrl: keyLiveQueryUrl, // Required if using LiveQuery
Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/parse_server_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Parse {
/// Parse().initialize(
/// "PARSE_APP_ID",
/// "https://parse.myaddress.com/parse/,
/// masterKey: "asd23rjh234r234r234r",
/// clientKey: "asd23rjh234r234r234r",
/// debug: true,
/// liveQuery: true);
/// ```
Expand Down
1 change: 0 additions & 1 deletion packages/flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ It's possible to add other parameters to work with your instance of Parse Server
await Parse().initialize(
keyApplicationId,
keyParseServerUrl,
masterKey: keyParseMasterKey, // Required for Back4App and others
clientKey: keyParseClientKey, // Required for some setups
debug: true, // When enabled, prints logs to console
liveQueryUrl: keyLiveQueryUrl, // Required if using LiveQuery
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const String keyApplicationName = '';
const String keyParseApplicationId = '';
const String keyParseMasterKey = '';
const String keyParseClientKey = '';
const String keyParseServerUrl = '';
const bool keyDebug = true;
4 changes: 2 additions & 2 deletions packages/flutter/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ class _MyAppState extends State<MyApp> {

// Initialize parse
await Parse().initialize(keyParseApplicationId, keyParseServerUrl,
masterKey: keyParseMasterKey,
clientKey: keyParseClientKey,
debug: true,
coreStore: await CoreStoreSharedPrefsImp.getInstance());

//parse serve with secure store and desktop support

// Parse().initialize(keyParseApplicationId, keyParseServerUrl,
// masterKey: keyParseMasterKey,
// clientKey: keyParseClientKey,
// debug: true,
// coreStore: CoreStoreSharedPrefsImp.getInstance());

Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/example/lib/pages/decision_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class _DecisionPageState extends State<DecisionPage> {
Future<void> _initParse() async {
try {
await Parse().initialize(keyParseApplicationId, keyParseServerUrl,
masterKey: keyParseMasterKey, debug: true);
clientKey: keyParseClientKey, debug: true);
final ParseResponse response = await Parse().healthCheck();
if (response.success) {
final ParseUser user = await ParseUser.currentUser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Future<Database> getDB() async {

Future<void> setupParseInstance() async {
await Parse().initialize(keyParseApplicationId, keyParseServerUrl,
masterKey: keyParseMasterKey, appName: keyApplicationName, debug: true);
clientKey: keyParseClientKey, appName: keyApplicationName, debug: true);
}

DietPlan getDummyDietPlan() {
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/lib/parse_server_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Parse extends sdk.Parse
/// Parse().initialize(
/// "PARSE_APP_ID",
/// "https://parse.myaddress.com/parse/,
/// masterKey: "asd23rjh234r234r234r",
/// clientKey: "asd23rjh234r234r234r",
/// debug: true,
/// liveQuery: true);
/// ```
Expand Down