function setToken(loginToken, expires) {
  if (loginToken && expires !== -1) {
    cookie.set('meteor_login_token', loginToken, {
      path: '/',
      expires,
      sameSite: 'lax',
      secure: document.domain !== 'localhost',
    });
  } else {
    cookie.remove('meteor_login_token', {
      path: '/',
    });
  }
}
Manage meteor_login_token cookie
Necessary for authentication when the
Authorization header is not set

E.g on first page loading