@cedros/login-react 0.0.24 → 0.0.26

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
  /**
@@ -3056,6 +3054,8 @@ export declare interface SolanaLoginButtonProps {
3056
3054
  * @default true
3057
3055
  */
3058
3056
  hideIfNoWallet?: boolean;
3057
+ /** Called when the button's loading state changes (connecting, signing, etc.). */
3058
+ onLoadingChange?: (loading: boolean) => void;
3059
3059
  /**
3060
3060
  * Solana wallet adapter context. Pass this from @solana/wallet-adapter-react's useWallet().
3061
3061
  * When provided, the component assumes a WalletProvider exists in the React tree and
@@ -4947,6 +4947,8 @@ export declare interface UseWebAuthnReturn {
4947
4947
  isLoading: boolean;
4948
4948
  error: AuthError | null;
4949
4949
  clearError: () => void;
4950
+ /** Unified passkey flow: tries discoverable auth first, falls back to signup if no passkey exists. */
4951
+ continueWithPasskey: () => Promise<AuthResponse>;
4950
4952
  /** Start a server-managed WebAuthn authentication ceremony (login). */
4951
4953
  authenticatePasskey: (params?: {
4952
4954
  email?: string;