docs: private static void tokenToAuthCookie(
        HttpServletResponse resp,
        String token,
        String domain,
        String path,
        long expires,
        boolean isCookiePersistent,
        boolean isSecure
    )
    {
      resp.addHeader("Set-Cookie", tokenToCookieString(token, domain, path, expires, isCookiePersistent, isSecure));
    }