Authenticate Firebase JWT token on server running NGINX + Node.JS
<p>I have a server hosting an NGINX front-end and a Node.JS back-end.
Scenario: The server needs to pass each request containing the JWT token to the Node.JS back-end which will validate the token using the Firebase SDK and if the token authenticates then it should pass the flow back to NGINX which should continue with the reverse proxy and route accordingly.</p>

<p>So far I have managed to set up the NGINX as a reverse-proxy which works effectively. I am confused as to how to pass the token to nginx for authentication and back to nginx to continue with the reverse proxy if verified.</p>