npm i foursec-challenge
yarn add foursec-challenge
import ax from "axios";
const token = Buffer.from(
`${process.env.FOURSEC_APP_ID}:${process.env.FOURSEC_APP_TOKEN}`
).toString("base64");
const fsApi = ax.create({
baseURL: process.env.FOURSEC_API_URL,
headers: {
Authorization: `Basic ${token}`,
},
});
export default fsApi;