UNPKG

@digital-gov-mg/nui-federation-sdk

Version:

This Frontend TypeScript SDK connects to the NUI Federation API for getting or creating, revoke, generating batch for NUI from the API

14 lines (13 loc) 454 B
import * as http from 'axios'; import { HTTPRequestParameters } from './http-module'; export { http }; export declare abstract class HTTP { private baseUrl; private clientId; private clientSecret; private instance; private accessToken; private isAlreadyFetchingAccessToken; constructor(baseUrl: string, clientId: string, clientSecret: string); protected request<T>({ url, options, }: HTTPRequestParameters): Promise<T>; }