@privy-io/react-auth 1.56.0 → 1.57.0-beta-20240213234721

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
@@ -675,6 +675,7 @@ interface GetCurrentUserResponse {
675
675
  created_at: number;
676
676
  linked_accounts: LinkedAccountsResponseType;
677
677
  mfa_methods: LinkedMfaMethodsResponseType;
678
+ has_accepted_terms: boolean;
678
679
  }
679
680
 
680
681
  interface DefaultsType {
@@ -874,6 +875,7 @@ declare class PrivyClient {
874
875
  startAuthFlow(authFlow: AuthFlow): void;
875
876
  startMfaFlow(mfaFlow: MfaFlow): void;
876
877
  unlinkEmail(address: string): Promise<User>;
878
+ acceptTerms(): Promise<User>;
877
879
  unlinkPhone(phoneNumber: string): Promise<User>;
878
880
  unlinkWallet(address: string): Promise<User>;
879
881
  unlinkOAuth(provider: OAuthProviderType, subject: string): Promise<User>;
@@ -1334,6 +1336,11 @@ interface User {
1334
1336
  linkedAccounts: Array<LinkedAccountWithMetadata>;
1335
1337
  /** The list of MFA Methods associated with this user. */
1336
1338
  mfaMethods: Array<MfaMethod>;
1339
+ /**
1340
+ * Whether or not the user has explicitly accepted the Terms and Conditions
1341
+ * and/or Privacy Policy
1342
+ */
1343
+ hasAcceptedTerms: boolean;
1337
1344
  }
1338
1345
  type PrivyServerConfig = {
1339
1346
  id?: string;
@@ -1354,6 +1361,7 @@ type PrivyServerConfig = {
1354
1361
  farcasterAuth?: boolean;
1355
1362
  termsAndConditionsUrl: string | null;
1356
1363
  privacyPolicyUrl: string | null;
1364
+ requireUsersAcceptTerms?: boolean;
1357
1365
  createdAt?: Date;
1358
1366
  updatedAt?: Date;
1359
1367
  customApiUrl?: string | null;