@privy-io/react-auth 1.26.1 → 1.26.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import react, { ReactElement } from 'react';
2
2
  import { ExternalProvider, InfuraProvider, Web3Provider } from '@ethersproject/providers';
3
3
  import { AbstractProvider } from 'web3-core';
4
4
  import EventEmitter from 'eventemitter3';
5
- import { AxiosResponse, AxiosRequestConfig } from 'axios';
5
+ import { FetchOptions } from 'ofetch';
6
6
 
7
7
  /**
8
8
  * We support a subset of the provider methods found here:
@@ -1152,9 +1152,9 @@ declare class Http {
1152
1152
  private sdkVersion;
1153
1153
  fallbackApiUrl: string;
1154
1154
  constructor(appId: string, client: PrivyClient, defaults: DefaultsType);
1155
- get<T = any, R = AxiosResponse<T>, D = any>(path: string, config?: AxiosRequestConfig<D>, fetchAccessToken?: boolean): Promise<R>;
1156
- post<T = any, R = AxiosResponse<T>, D = any>(path: string, data?: D, config?: AxiosRequestConfig<D>, fetchAccessToken?: boolean): Promise<R>;
1157
- delete<T = any, R = AxiosResponse<T>, D = any>(path: string, config?: AxiosRequestConfig<D>, fetchAccessToken?: boolean): Promise<R>;
1155
+ get<T = any>(path: string, config?: FetchOptions<'json'>, fetchAccessToken?: boolean): Promise<T>;
1156
+ post<T = any, D = any>(path: string, data?: D, config?: FetchOptions<'json'>, fetchAccessToken?: boolean): Promise<T>;
1157
+ delete<T = any>(path: string, config?: FetchOptions<'json'>, fetchAccessToken?: boolean): Promise<T>;
1158
1158
  private buildConfig;
1159
1159
  }
1160
1160