@cedros/login-react 0.0.25 → 0.0.28

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
@@ -2331,15 +2331,13 @@ export declare interface OtpInputProps {
2331
2331
  className?: string;
2332
2332
  }
2333
2333
 
2334
- export declare function PasskeyLoginButton({ onSuccess, className, children, disabled, mode, }: PasskeyLoginButtonProps): JSX.Element;
2334
+ export declare function PasskeyLoginButton({ onSuccess, className, children, disabled, }: PasskeyLoginButtonProps): JSX.Element;
2335
2335
 
2336
2336
  export declare interface PasskeyLoginButtonProps {
2337
2337
  onSuccess?: () => void;
2338
2338
  className?: string;
2339
2339
  children?: ReactNode;
2340
2340
  disabled?: boolean;
2341
- /** 'login' authenticates an existing passkey; 'register' creates a new account via passkey. */
2342
- mode?: 'login' | 'register';
2343
2341
  }
2344
2342
 
2345
2343
  /**
@@ -4949,6 +4947,8 @@ export declare interface UseWebAuthnReturn {
4949
4947
  isLoading: boolean;
4950
4948
  error: AuthError | null;
4951
4949
  clearError: () => void;
4950
+ /** Unified passkey flow: tries discoverable auth first, falls back to signup if no passkey exists. */
4951
+ continueWithPasskey: () => Promise<AuthResponse>;
4952
4952
  /** Start a server-managed WebAuthn authentication ceremony (login). */
4953
4953
  authenticatePasskey: (params?: {
4954
4954
  email?: string;