@privy-io/react-auth 1.79.1 → 1.80.0
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 +246 -246
- package/dist/index.d.ts +6 -0
- package/dist/index.js +245 -245
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -2361,8 +2361,13 @@ type PrivyFarcasterSignerInitResponse = {
|
|
|
2361
2361
|
public_key: string;
|
|
2362
2362
|
status: 'revoked';
|
|
2363
2363
|
};
|
|
2364
|
+
type PrefillLoginOptions = {
|
|
2365
|
+
type: 'email' | 'phone';
|
|
2366
|
+
value: string;
|
|
2367
|
+
};
|
|
2364
2368
|
type RuntimeLoginOverridableOptions = {
|
|
2365
2369
|
loginMethods?: PrivyClientConfig['loginMethods'];
|
|
2370
|
+
prefill?: PrefillLoginOptions;
|
|
2366
2371
|
};
|
|
2367
2372
|
type SetWalletRecoveryOptions = {};
|
|
2368
2373
|
|
|
@@ -2590,6 +2595,7 @@ interface PrivyInterface {
|
|
|
2590
2595
|
/**
|
|
2591
2596
|
* Opens the Privy login modal and prompts the user to login.
|
|
2592
2597
|
* @param options.loginMethods {LoginMethod[]} custom login methods to display in the login modal. This will overwrite the value provider to the client config.
|
|
2598
|
+
* @param options.prefill {PrefillLoginOptions} prefill the login modal with the provided email or phone number.
|
|
2593
2599
|
*/
|
|
2594
2600
|
login: (options?: RuntimeLoginOverridableOptions | MouseEvent<any, any>) => void;
|
|
2595
2601
|
/**
|