Skip to content

Accessing the Third‐Party APIs Locally

Aman Kumar [SSW] edited this page Aug 3, 2023 · 4 revisions

On production, we are using Azure Key Vault to access our secrets using process.env.VARIABLE_NAME, but to run it locally, we need to set up the following things.

  1. Create a file named .env in the root directory of your project.

image

Figure: .env file in the root directory of our project

  1. Add the environment variables for the API.

image Figure: Variables in the .env

  1. The variables can be found in our Keeper: Client Secrets | SSW | SSW.Website-v3 | Power Automate - Environment variables

image

Figure: Secrets in the Keeper