title: Get Magento 2 customer ID in Vue front-end
body: <p>I am working on Vue Storefront ( a Nuxt.js with Express.js based framework) where GraphQL queries are used to get data from Magento 2.</p>
  <p>I tried to add customers ID in the GraphQL query for customer data but it returned as Null (see response below). I've read this is not recommended but I still want to try something in my client with the Customer ID.</p>
  <pre><code>   &quot;data&quot;:{
        &quot;customer&quot;:{
           &quot;__typename&quot;:&quot;Customer&quot;,
           &quot;date_of_birth&quot;:null,
           &quot;email&quot;:&quot;john@doe.com&quot;,
           &quot;firstname&quot;:&quot;john&quot;,
           &quot;is_subscribed&quot;:false,
           &quot;id&quot;:null,
           &quot;addresses&quot;:[
              ...
  </code></pre>
  <p>How can I, safety risks aside, still aquire the Customer ID in my front-end? Is there a small GraphQl query I can execute as a javascript function? I also have an Express.js part of my app where I can securely request and send data to other platforms (this is server side).</p>