Create a fetch wrapper for the API calls, it will handle: - add correct basename on the api request - add Bearer automatically on the api request - logout automatically on 401 request
4 lines
75 B
TypeScript
4 lines
75 B
TypeScript
import * as dotenv from 'dotenv';
|
|
|
|
dotenv.config({ path: './.env.test' });
|