I am trying to make Firebase authentication work on the server.
\'use strict\';
const functions = require(\'firebase-functions\');
const admin = require(\'fire
You have to send the Authorization header with every request. HTTPS functions are stateless. They don't remember anything from a prior request. So, you shouldn't depend on redirect behavior to retain state. Instead, the client needs to figure out where to go next and make the next request itself.