Skip to content
Open
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
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ View [samples](./samples) folder for more specific examples
```

You can get your token here (https://firebase.google.com/docs/auth/admin/verify-id-tokens) from the client SDK.

```js
app.use( require("firebase-auth-express-middleware") )
``

2. When requesting, and token is valid, you can get the `user` object from request
3. When requesting, and token is valid, you can get the `user` object from request
```js
router.get('/api/example', (req, res) => res.send(`You're logged in as ${req.authenticatedUser.email} with Firebase UID: ${req.authenticatedUser.uid}`));
```
Expand All @@ -45,4 +49,4 @@ View [samples](./samples) folder for more specific examples
## License and Author
This project is made available under MIT © LICENSE
Author(s):
- [JJ](https://github.com/Jaimeloeuf)
- [JJ](https://github.com/Jaimeloeuf)