ThisIsRudigo / firebaseauth

Firebase authentication library - a node js wrapper around the Firebase REST API
42 stars 8 forks source link

Fix error caused when there's no body from the request #21

Closed Phillip-Cognativ closed 5 years ago

Phillip-Cognativ commented 5 years ago

Trying to use the middleware as it is just errors every time as it looks for the token in the body, even when there is none.

Adding a check for the body before looking for the token there