mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 13:05:44 +00:00
10 lines
293 B
TypeScript
10 lines
293 B
TypeScript
import axios from "axios";
|
|
|
|
export const api = axios.create({
|
|
baseURL: process.env.NEXT_PUBLIC_API_URL,
|
|
});
|
|
|
|
// TODO: integrate @edr/auth — add a request interceptor here that attaches
|
|
// the bearer token from the auth package and a response interceptor that
|
|
// triggers a refresh on 401.
|