@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/esm/index.js +47 -47
- package/dist/index.d.ts +4 -4
- package/dist/index.js +53 -53
- package/package.json +2 -2
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 {
|
|
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
|
|
1156
|
-
post<T = any,
|
|
1157
|
-
delete<T = any
|
|
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
|
|