Search documentation

Search guides, examples, and component APIs.

Quick links
↑↓ NavigateEnter OpenEsc Close
Get started

Blocks / Authentication

Social login

A provider-first sign-in with a one-tap “continue as” account, GitHub, Apple, and passkey options, and email as the fallback.

bunx --bun @getweini/cli@latest add alert badge button card input link password-input separator
Customize
  • The block emits `provider` with `google`, `github`, `apple`, or `passkey` when a provider button is pressed, and `submit` for the email form. Start the OAuth redirect or WebAuthn call in your handler.
  • The “continue as” row shows the last account used on this device. Pass it as `copy.lastAccount` from a cookie you already set at sign-in; drop the row when you have none.
  • Remove a provider from the `others` list in the script. The marks are inline SVG, so replace them with your brand assets if you need exact artwork. The orbit illustration is decorative and hidden from assistive technology.
  • While `loading` is true every action is disabled, so people cannot start two sign-in flows at once. Pass `error` to show a failed attempt above the providers. All text lives in the `copy` prop.