CORE-SDK provides useful tools.
https://www.npmjs.com/package/@berlingske-media/bm.node-module.backend_sdk_core
const apiClient = createApiClient(
this.apiHost,
);
const response = await this.apiClient.post<RegisterGigyaResponse, { email: string, password: string }>(
'/auth/register',
registerUserDTO,
);