Skip to content

Commit

Permalink
added description on how to exclude secret
Browse files Browse the repository at this point in the history
  • Loading branch information
ochanje210 authored Dec 28, 2016
1 parent 70a7913 commit 1350b17
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down Expand Up @@ -113,6 +114,23 @@ firebase = new Firebase
<br />

#### • 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"
}
}
```

<br />

#### • firebase.debug
---
If set to **true**, relevant connection messages will be logged to the console.
Expand Down

0 comments on commit 1350b17

Please sign in to comment.