@cedros/login-react 0.0.17 → 0.0.19

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
@@ -573,7 +573,7 @@ export declare interface AuthError {
573
573
  /**
574
574
  * Standard error codes
575
575
  */
576
- export declare type AuthErrorCode = 'INVALID_CREDENTIALS' | 'ACCOUNT_LOCKED' | 'EMAIL_EXISTS' | 'WALLET_EXISTS' | 'INVALID_TOKEN' | 'TOKEN_EXPIRED' | 'INVALID_SIGNATURE' | 'INVALID_PUBLIC_KEY' | 'CHALLENGE_EXPIRED' | 'VALIDATION_ERROR' | 'RATE_LIMITED' | 'NOT_FOUND' | 'FORBIDDEN' | 'UNAUTHORIZED' | 'STEP_UP_REQUIRED' | 'TOTP_REQUIRED' | 'INVALID_TOTP_CODE' | 'SERVICE_UNAVAILABLE' | 'SERVER_ERROR' | 'NETWORK_ERROR' | 'UNKNOWN_ERROR';
576
+ export declare type AuthErrorCode = 'INVALID_CREDENTIALS' | 'ACCOUNT_LOCKED' | 'EMAIL_EXISTS' | 'ACCOUNT_LINK_REQUIRED' | 'WALLET_EXISTS' | 'INVALID_TOKEN' | 'TOKEN_EXPIRED' | 'INVALID_SIGNATURE' | 'INVALID_PUBLIC_KEY' | 'CHALLENGE_EXPIRED' | 'VALIDATION_ERROR' | 'RATE_LIMITED' | 'NOT_FOUND' | 'FORBIDDEN' | 'UNAUTHORIZED' | 'STEP_UP_REQUIRED' | 'TOTP_REQUIRED' | 'INVALID_TOTP_CODE' | 'SERVICE_UNAVAILABLE' | 'SERVER_ERROR' | 'NETWORK_ERROR' | 'UNKNOWN_ERROR';
577
577
 
578
578
  /**
579
579
  * Authentication method used for login/registration
@@ -3744,6 +3744,10 @@ export declare interface UseAppleAuthReturn {
3744
3744
  isInitialized: boolean;
3745
3745
  error: AuthError | null;
3746
3746
  clearError: () => void;
3747
+ /** ID token saved when ACCOUNT_LINK_REQUIRED is returned. Pass to POST /auth/link-oauth with the user's password. */
3748
+ pendingLinkIdToken: string | null;
3749
+ /** Clear the pending link state */
3750
+ clearPendingLink: () => void;
3747
3751
  }
3748
3752
 
3749
3753
  /**
@@ -4010,6 +4014,10 @@ export declare interface UseGoogleAuthReturn {
4010
4014
  isInitialized: boolean;
4011
4015
  error: AuthError | null;
4012
4016
  clearError: () => void;
4017
+ /** ID token saved when ACCOUNT_LINK_REQUIRED is returned. Pass to POST /auth/link-oauth with the user's password. */
4018
+ pendingLinkIdToken: string | null;
4019
+ /** Clear the pending link state */
4020
+ clearPendingLink: () => void;
4013
4021
  }
4014
4022
 
4015
4023
  /**