@privy-io/react-auth 1.35.0-beta.1 → 1.35.0-beta.10

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
@@ -777,16 +777,17 @@ type PrivyClientConfig = {
777
777
  * The order of this array does not currently dictate order of the login methods in the UI, but may in the future. */
778
778
  loginMethods?: Array<'wallet' | 'email' | 'sms' | 'google' | 'twitter' | 'discord' | 'github' | 'apple'>;
779
779
  /**
780
- * This property is required for all apps that use a third-party authentication provider.
781
- *
782
- * @hidden
780
+ * This property is only required for apps that use a third-party authentication provider.
783
781
  */
784
782
  customAuth?: {
785
783
  /**
786
784
  * If true, enable custom authentication integration.
787
- * This enables a JWT from a custom auth provider to be used to authenticate Privy embedded wallets
785
+ * This enables a JWT from a custom auth provider to be used to authenticate Privy embedded wallets.
786
+ * Defaults to true.
787
+ *
788
+ * @default true
788
789
  */
789
- enabled: boolean;
790
+ enabled?: boolean;
790
791
  /**
791
792
  * A callback that returns the user's custom auth provider's access token as a string.
792
793
  * Can be left blank if using cookies to store and send access tokens
@@ -803,7 +804,7 @@ type PrivyClientConfig = {
803
804
  * }}
804
805
  * />
805
806
  */
806
- getCustomAccessToken?: () => Promise<string | undefined>;
807
+ getCustomAccessToken: () => Promise<string | undefined>;
807
808
  /**
808
809
  * Custom auth providers loading state
809
810
  *
@@ -820,22 +821,6 @@ type PrivyClientConfig = {
820
821
  * />
821
822
  */
822
823
  isLoading: boolean;
823
- /**
824
- * Custom auth providers authenticated state
825
- *
826
- * @example
827
- * const {user} = useAuth();
828
- *
829
- * <PrivyProvider
830
- * {...props}
831
- * config={{
832
- * customAuth: {
833
- * isAuthenticated: Boolean(user),
834
- * },
835
- * }}
836
- * />
837
- */
838
- isAuthenticated: boolean;
839
824
  };
840
825
  /** All legal configuration */
841
826
  legal?: {