@privy-io/react-auth 1.53.0 → 1.53.1-beta-20240117202512
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 +227 -225
- package/dist/index.d.ts +8 -8
- package/dist/index.js +227 -225
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1303,7 +1303,7 @@ type PriceDisplayOptions = {
|
|
|
1303
1303
|
secondary: null;
|
|
1304
1304
|
};
|
|
1305
1305
|
type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'rainbow' | 'phantom' | 'zerion' | 'detected_wallets' | 'wallet_connect';
|
|
1306
|
-
|
|
1306
|
+
interface PrivyClientConfig {
|
|
1307
1307
|
/** All UI and theme related configuration */
|
|
1308
1308
|
appearance?: {
|
|
1309
1309
|
/** Primary theme for the privy UI. This dictates the foreground and background colors within the UI.
|
|
@@ -1551,7 +1551,7 @@ type PrivyClientConfig = {
|
|
|
1551
1551
|
*/
|
|
1552
1552
|
useSandbox?: boolean;
|
|
1553
1553
|
};
|
|
1554
|
-
}
|
|
1554
|
+
}
|
|
1555
1555
|
interface AllowlistConfig {
|
|
1556
1556
|
errorTitle: string | null;
|
|
1557
1557
|
errorDetail: string | null;
|
|
@@ -2335,7 +2335,7 @@ declare function errorIndicatesMaxMfaRetries(error: unknown): error is PrivyIfra
|
|
|
2335
2335
|
declare const VERSION: string;
|
|
2336
2336
|
|
|
2337
2337
|
type CallbackError = (error: PrivyErrorCode) => void;
|
|
2338
|
-
|
|
2338
|
+
interface PrivyEvents {
|
|
2339
2339
|
login: {
|
|
2340
2340
|
/**
|
|
2341
2341
|
* Callback that will execute once a `login` flow successfully completes.
|
|
@@ -2416,7 +2416,7 @@ type PrivyEvents = {
|
|
|
2416
2416
|
*/
|
|
2417
2417
|
onAccessTokenRemoved: () => void;
|
|
2418
2418
|
};
|
|
2419
|
-
}
|
|
2419
|
+
}
|
|
2420
2420
|
|
|
2421
2421
|
/**
|
|
2422
2422
|
* Use this hook to log the user in, and to attach callbacks
|
|
@@ -2447,12 +2447,12 @@ declare function useLogout(callbacks?: PrivyEvents['logout']): {
|
|
|
2447
2447
|
logout: () => Promise<void>;
|
|
2448
2448
|
};
|
|
2449
2449
|
|
|
2450
|
-
|
|
2450
|
+
type SendCodeToEmail = {
|
|
2451
2451
|
email: string;
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2452
|
+
};
|
|
2453
|
+
type LoginWithCode = {
|
|
2454
2454
|
code: string;
|
|
2455
|
-
}
|
|
2455
|
+
};
|
|
2456
2456
|
interface UseLoginWithEmail {
|
|
2457
2457
|
/**
|
|
2458
2458
|
* Sends a one-time-passcode (OTP) to the user's email address.
|