Designed to serve this skeleton webapp
You will need to setup the firebase-admin.js file to fit your project and set the authentiation cookie on the client app by sending a post request to /cookie after a successful login. (see the login github project for an example (link needed))
Also you will need to put the sites that this server will serve their respective folders, below:
This server serves two different webapps from 2 separate folders: the login and the portal folders
Put all assets for a static login app / site here
Put all assets for your portal to serve after login here