diff --git a/README.md b/README.md index ef8aad1..c34233f 100644 --- a/README.md +++ b/README.md @@ -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}`)); ``` @@ -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) \ No newline at end of file +- [JJ](https://github.com/Jaimeloeuf)