@privy-io/react-auth 1.12.1-beta.4 → 1.13.0-beta.1

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
@@ -161,6 +161,7 @@ interface AppSettings {
161
161
  theme?: 'System' | 'Light' | 'Dark' | string;
162
162
  accentColor?: string;
163
163
  showWalletLoginFirst?: boolean;
164
+ allowlistConfig: AllowlistConfig;
164
165
  walletAuth?: boolean;
165
166
  emailAuth?: boolean;
166
167
  smsAuth?: boolean;
@@ -173,6 +174,12 @@ interface AppSettings {
173
174
  createdAt?: Date;
174
175
  updatedAt?: Date;
175
176
  }
177
+ interface AllowlistConfig {
178
+ errorTitle: string | null;
179
+ errorDetail: string | null;
180
+ ctaText: string | null;
181
+ ctaLink: string | null;
182
+ }
176
183
 
177
184
  declare function getAccessToken(): Promise<string | null>;
178
185
  /**
@@ -617,11 +624,18 @@ declare class PrivyClient {
617
624
  * current app ID. If no valid token is found, this method will force a logout and return null.
618
625
  *
619
626
  * If the token is expired or expiring soon, this will attempt to
620
- * first refresh the access token to ensure that the token is active.
627
+ * first refresh the access token to ensure that the token is active. You can
628
+ * disable this behavior using `disableAutoRefresh`, although it is not
629
+ * recommended.
630
+ *
631
+ * @param disableAutoRefresh not recommended - optionally disable automatic
632
+ * token refresh when the token is
621
633
  *
622
634
  * @returns Promise<string | null>
623
635
  */
624
- getAccessToken(): Promise<string | null>;
636
+ getAccessToken(options?: {
637
+ disableAutoRefresh?: boolean;
638
+ }): Promise<string | null>;
625
639
  getAppSettings(): Promise<AppSettings>;
626
640
  setActiveWallet(address: string, user: User): User;
627
641
  /**