title: How do I shorten Google Cloud Storage Signed download URLs?
body: <p>I have a <code>firebase</code> app, and I use <code>Firebase Storage</code> to upload images.  the <code>URL</code>s i get back when I use the <code>firebase web sdk</code> to upload are reasonable:</p>
  
  <pre><code>https://firebasestorage.googleapis.com/v0/b/projectId.appspot.com/o/image.jpg?alt=media&amp;token=51183d4a-551a-41e2-b620-14b44b8c86ed
  </code></pre>
  
  <p>However, since <code>Firebase</code> doesn't support the <code>storage API</code> in their <code>node.js</code> SDK, I have to use the <code>Google Cloud Storage SDK</code>:</p>
  
  <pre><code>bucketRef.upload(localImagePath, options, (err, file, response) =&gt; {
                      file.getSignedUrl({
                          action: 'read',
                          expires: '03-17-2030'
                      }, (err, url) =&gt; {
                          console.log(url)
                      })
                  })
  </code></pre>
  
  <p>This returns the prohibitively long:  </p>
  
  <pre><code>https://storage.googleapis.com/projectId.appspot.com/image.jpg?Googl
  eAccessId=firebase-adminsdk-xfe5z@projectId.iam.gserviceaccount.com&amp;Expires=1899950400&amp;Si
  gnature=fyotCYAbiWGuBGjwL0YDpByqZsKTdrwd9%2F7bZ88Rw8zP53dyEvcrIer6paYdzb%2BlH7OmJSRfcSxaAj7ur
  GhZw20a4k4b5InLufqrOhSuYAE6w5vM2Hp8vz1XgSXl9jOFym2wMPEn7RkVwjxnT3QJKSBa0vqnkXX0wQUF4CjvHjUxbS
  Tc9jj0NeNYUNmHGlZlVcKf%2BgE00rG9gt3QyCGAMt55h3kltMbyT%2FvnAYh%2FwuvhbVhX%2FNSCjieYb13KjjmDTgt
  l5NU5nWY9Cu0QBraAbn6GlsUUvj0hBB2Gi7OHnUNi218w3EPehy7YAy6RhTcnuhiZlFaLX3TSmBS%2BX%2F3%2BoA%3D%
  3D
  </code></pre>
  
  <p>I keep these URLs in firebase, so this stands to be kind of a storage burden as the # of images I'm storing starts to approach the 6-7 digit range.</p>
  
  <p>Is there a way to shorten this? </p>