@privy-io/react-auth 1.74.0 → 1.75.0-beta-20240715181506
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 +342 -295
- package/dist/index.d.ts +6 -2
- package/dist/index.js +342 -295
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2426,6 +2426,9 @@ type PrivyFarcasterSignerInitResponse = {
|
|
|
2426
2426
|
public_key: string;
|
|
2427
2427
|
status: 'revoked';
|
|
2428
2428
|
};
|
|
2429
|
+
type RuntimeLoginOverridableOptions = {
|
|
2430
|
+
loginMethods?: PrivyClientConfig['loginMethods'];
|
|
2431
|
+
};
|
|
2429
2432
|
|
|
2430
2433
|
declare function getAccessToken(): Promise<string | null>;
|
|
2431
2434
|
/**
|
|
@@ -2524,8 +2527,9 @@ interface PrivyInterface {
|
|
|
2524
2527
|
} | MouseEvent<any, any>) => void;
|
|
2525
2528
|
/**
|
|
2526
2529
|
* Opens the Privy login modal and prompts the user to login.
|
|
2530
|
+
* @param options.loginMethods {LoginMethod[]} custom login methods to display in the login modal. This will overwrite the value provider to the client config.
|
|
2527
2531
|
*/
|
|
2528
|
-
login: () => void;
|
|
2532
|
+
login: (options?: RuntimeLoginOverridableOptions | MouseEvent<any, any>) => void;
|
|
2529
2533
|
/**
|
|
2530
2534
|
* Opens the Privy login modal and prompts the user to login or connect a wallet.
|
|
2531
2535
|
*/
|
|
@@ -3408,7 +3412,7 @@ declare function useLogin(callbacks?: PrivyEvents['login']): {
|
|
|
3408
3412
|
/**
|
|
3409
3413
|
* Opens the Privy login modal and prompts the user to login.
|
|
3410
3414
|
*/
|
|
3411
|
-
login: () => void;
|
|
3415
|
+
login: (options?: RuntimeLoginOverridableOptions | react.MouseEvent<any, any> | undefined) => void;
|
|
3412
3416
|
};
|
|
3413
3417
|
|
|
3414
3418
|
/**
|