@privy-io/react-auth 1.60.0 → 1.60.1-beta-20240404222152

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
@@ -1866,6 +1866,20 @@ interface EmbeddedWalletsConfig {
1866
1866
  createOnLogin: EmbeddedWalletCreateOnLoginConfig;
1867
1867
  requireUserPasswordOnCreate: boolean;
1868
1868
  }
1869
+ type OtpFlowState = {
1870
+ status: 'initial';
1871
+ } | {
1872
+ status: 'error';
1873
+ error: Error | null;
1874
+ } | {
1875
+ status: 'sending-code';
1876
+ } | {
1877
+ status: 'awaiting-code-input';
1878
+ } | {
1879
+ status: 'submitting-code';
1880
+ } | {
1881
+ status: 'done';
1882
+ };
1869
1883
  /**
1870
1884
  * UI configuration object for the embedded wallet's Sign Message screen
1871
1885
  */
@@ -3031,6 +3045,10 @@ type UseLoginWithSms = {
3031
3045
  * @returns a Promise that resolves if the inputted OTP was valid, or rejects if there was an error.
3032
3046
  */
3033
3047
  loginWithCode: ({ code }: LoginWithCode) => Promise<void>;
3048
+ /**
3049
+ * The current state of the login with SMS flow.
3050
+ */
3051
+ state: OtpFlowState;
3034
3052
  };
3035
3053
  /**
3036
3054
  * @experimental