axios-cloudrun-authenticator
v1.0.0
Published
Google Cloud Platform Cloud Run service-to-service authentication, through axios interceptors, by adding token from the internal metadata server to headers
Maintainers
Readme
import axiosCloudRunAuth from "axios-cloudrun-authenticator";
import axios from "axios";
const instance = axios.create(/*axiosOptions*/);
axiosCloudRunAuth(
instance,
serviceUrl //optionnal, default to origin of instance.defaults.baseURL, e.g.: https://myinstance.a.run.app if baseURL is https://myinstance.a.run.app or https://myinstance.a.run.app/path
);$ npm i axios-cloudrun-authenticatorThis project is licensed under the ISC License
