Why is the req.cookies.session undefined? Firebase + Node + express
问题 I'm trying to assign a generate a session cookie in exchange for the provided ID token. Here are the docs I'm following. Here is my client side sign-in code: firebase.auth().signInWithEmailAndPassword(email, password) .then(function(user) { firebase.auth().currentUser.getIdToken(/* forceRefresh */ true).then(function(idToken) { return sendToken(idToken); }); }) // .then(() => { // return firebase.auth().signOut(); // }) .then(() => { window.location.assign('/member'); }) .catch(function(error