UNPKG

projex

Version:
15 lines (14 loc) 1 kB
/** * The function `serviceGetAuth` is an asynchronous function that sends a POST request to a VTEX API * endpoint to get an authentication token using an account, API key, and API token. * @param {string} account - The `account` parameter is a string that represents the name of the VTEX * account you want to authenticate with. * @param {string} apiKey - The `apiKey` parameter is a string that represents the API key used for * authentication. It is typically a unique identifier that is associated with a specific account or * user. * @param {string} apiToken - The `apiToken` parameter is a token that is used for authentication * purposes. It is typically generated by the API provider and is used to verify the identity of the * user making the request. * @returns the result of the axios request or undefined in case of errors. */ export declare const serviceGetAuth: (account: string, apiKey: string, apiToken: string) => Promise<import("axios").AxiosResponse<any, any> | undefined>;