diff --git a/README.md b/README.md index c9e9888..b1cdf10 100755 --- a/README.md +++ b/README.md @@ -75,7 +75,8 @@ This module is based on [Firebase's REST API](https://firebase.google.com/docs/r | :--- | | [**1) Properties**](https://github.com/marckrenn/framer-Firebase#1-properties) | | \|--- [firebase**.projectID**, **.secret**](https://github.com/marckrenn/framer-Firebase#-firebaseprojectid-firebasesecret) | -| \|--- [firebase**.debug**](https://github.com/marckrenn/framer-Firebase#-firebasedebug) | +| \|--- [firebase**.secret**](https://github.com/marckrenn/framer-Firebase#-firebasesecret) | +| \|--- [firebase**.debug**](https://github.com/marckrenn/framer-Firebase#-firebasedebug) | | \|--- [firebase**.status**](https://github.com/marckrenn/framer-Firebase#-firebasestatus-read-only) | | [**2) Methods**](https://github.com/marckrenn/framer-Firebase#2-methods) | | \|--- [firebase**.get**()](https://github.com/marckrenn/framer-Firebase#-firebasegetpath-callback-parameters) | @@ -113,6 +114,23 @@ firebase = new Firebase
+#### • firebase.secret +If you wish not to share your *secret*, please follow the next steps. + +1. Simply, do not use *secret* on your code. (remove it if you have already) +2. Go to *Console* → *YourProject* → *Database* → *RULES* +3. Change the rules of `.read` and `.write` to `true` like the following: +```json +{ + "rules": { + ".read": "true", + ".write": "true" + } +} +``` + +
+ #### • firebase.debug --- If set to **true**, relevant connection messages will be logged to the console.