Sign inGet Started

bird auth

Usage

Contoh kode
bird auth

Description

Credentials are an OAuth grant from login or a bk_ API key taken from the environment, and either is scoped to your workspace. login opens a browser; --device prints a code for a headless host. Creating an account and organization needs no dashboard; the owner only opens the Terms page to read it.

Procedure

Sign up and create your organization

Sign up passwordlessly with the six-digit code emailed to the address, read the current Terms, then create your organization, which mints and stores your API credential. No dashboard and no password needed; the owner only opens the Terms page to read it. Signup and verification are region-agnostic; the region is chosen when you create the organization.

  1. bird auth signup — Emails a six-digit code to the address; no password is set. Read the six-digit code from the sign-in email. Next: bird auth verify-email
  2. bird auth verify-email — Signs in with the email and the emailed code; for a brand-new account returns a single-use onboarding_ticket. Next: bird auth terms
  3. bird auth terms — Returns the current Terms version and its page. Show the page to the person who will own the organization and ask whether they agree. Get the owner's agreement to the Terms. Next: bird auth create-org
  4. bird auth create-org — Creates the organization and workspace and stores the minted credential, so subsequent calls are authenticated. Pass the Terms version once the owner agrees; it is required when the API returns E02100 without it.

Session

NameDescription
loginAuthenticate with Bird through your browser (OAuth)
logoutRevoke the OAuth grant (if any) and remove the stored credentials file
statusShow current authentication state and validate the token against the API

Onboarding

NameDescription
signupStart a passwordless Bird signup and email a six-digit code
verify-emailConfirm the emailed six-digit code and sign in
termsGet the current Terms of Service
create-orgCreate your organization and workspace and mint your credential

Lanjutkan dengan dokumentasi, panduan, dan contoh untuk topik ini.