CorbadoConnectLogin is a UI component for passkey login. Enable smooth and secure passkey-based authentication for your users with ease.
onFallback
callback without rendering any UI. This happens if Gradual Rollout rules are configured to deny passkey login for the current user. This allows you to seamlessly direct them to your existing login method (e.g., password) without showing them a passkey option they can’t use.
clientState
value (from a previous onComplete
callback) stored in the browser’s localStorage
. It allows returning users on the same device to log in with a single click.
onFallback
callback. This is the preferred behavior when:
errorMessage
in the callback will provide context.
Name | Description | Required | Type |
---|---|---|---|
onComplete | Invoked upon a successful passkey login. Receives signedPasskeyData and a clientState string. Storing the clientState in localStorage is crucial for enabling the One-Tap Login experience on subsequent visits. | ✅ | (signedPasskeyData: string, clientState: string) => void |
onFallback | Called if passkey login isn’t possible (due to gradual rollout, passkey intelligence) or fails with a non-recoverable error. Provides an identifier (if the user entered one) and a descriptive errorMessage . Your logic should show an alternative login method (e.g., password) when this is called. | ✅ | (identifier: string, errorMessage: string) => void |
:root
block in your stylesheet. (See the Customization section of the CorbadoConnectAppend
component for a full list of variables).
.cb-connect-container
to avoid conflicts.
Class Name | Usage |
---|---|
.cb-h2 | Used for heading level 2 styling |
.cb-p | Used for paragraph text styling |
.cb-bold | Used for bold text |
.cb-link-button | Used for link-style buttons |
.cb-connect-container | The top-level container for the component |
.cb-primary-button | Used for primary buttons |
.cb-secondary-button | Used for secondary buttons |
.cb-notification-container | Used for notification containers |
.loader | Used for loader/spinner animations |
CorbadoConnectLogin
component.
Class Name | Usage |
---|---|
.cb-login-init-signup | Styles for the signup initialization section |
.cb-login-init-forgot-password | Styles for the forgot password initialization section |
.cb-login-error-hard-icons | Container for displaying hard error icons |
.cb-login-error-hard-fallback | Fallback styles for hard error messages |
.cb-login-error-soft-icons | Container for displaying soft error icons |
.cb-login-error-soft-fallback | Fallback styles for soft error messages |
.cb-login-loader-container | Container for loader elements |
.cb-login-init-passkey-button | Styles for the passkey button |
.cb-login-error-hard-cta | Styles for call-to-action elements in hard error |
.cb-login-success-icons | Container for displaying success icons |
.cb-switch | Styles for switch account button |
.cb-login-error-hard-help | Styles for help messages in hard error section |
Corbado Connect is currently not offered as self-service option. For inquiries, demonstrations, or to discuss enterprise deployment options, please contact us:We look forward to helping you deploy passkeys seamlessly—while protecting your existing investments and infrastructure.