title: Can I access Google Secrets Manager secrets externally
body: <p>I am writing an app that I will be hosting in Google Cloud Functions with some config stored in Secrets Manager. I would like to share this information with another node app that is running on my local machine. Is this possible? I have tried using the npm package but I can’t figure out how I can authenticate to get access to the manager.</p>
  <p>I am using a service key to access firestore:</p>
  <pre><code>import { initializeApp } from &quot;firebase/app&quot;;
  import { getFirestore } from &quot;firebase/firestore&quot;;
  const service_key = {
      apiKey: myKey,
      authDomain: &quot;my-poroject.firebaseapp.com&quot;,
      projectId: &quot;my-poroject&quot;,
      storageBucket: &quot;my-poroject.appspot.com&quot;,
      messagingSenderId: &quot;0123456789&quot;,
      appId: &quot;0:00000000:web:00000000000000&quot;
   }
  const app = initializeApp(service_Key);
  export const db = getFirestore(app);
  </code></pre>
  <p>This all works perfectly, but I can't see how I would apply the key or 'app' when using secret manager:</p>
  <pre><code>const {SecretManagerServiceClient} = require('@google-cloud/secret-manager');
  const client = new SecretManagerServiceClient();
  </code></pre>