Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Include database resource requirement for authClient #17

Merged
merged 1 commit into from
Aug 29, 2017
Merged
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
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,16 @@ export default App;

### Auth Client
The package lets you manage the login/logout process implementing an optional `authClient` prop of the `Admin` component [(see documentation)](https://marmelab.com/admin-on-rest/Authentication.html).
It stores a `firebaseToken` in `localStorage`.
It stores a `firebaseToken` in `localStorage`.

This requires a `users` resource relative to the root, with the user IDs as the children and an `isAdmin` boolean value.

```
app-name
+- users
+- USERID-FROM-FIREBASE-AUTH
+- isAdmin: true
```


```js
Expand Down