Bionic Docs

Registration and configuration

The client, origins and callbacks your integration needs before it can accept a sign-in.

Register a test app

  1. Open the Bionic developer console. Create a test identity with a passkey or sign in with your existing test passkey.
  2. Enter your app name, its exact HTTPS origin and its callback URL. For the web starter, use /auth/bionic/callback on that origin.
  3. Publish the TXT record at the DNS name shown in the console. Preserve existing TXT values. Choose Check DNS and issue credentials. The challenge expires after one hour. Use Get a new TXT value if it expires.
  4. Save the returned settings on your app server. The secret is shown once. If you lose it, use Find my apps, select the app, rotate its secret and update your server.
  5. Select the verified app and approve your chosen download with the owner passkey. Choose the web starter, Swift preview or Kotlin preview.

After a successful test sign-in, activate Login Free or Login Pro for your live domain.

Configuration

Every server entry point (createDurableLogin, createBionicNextAuth and the native server adapter) takes the same configuration.

SettingWhat it is
issuerThe hosted Bionic sign-in origin, as an exact HTTPS origin.
apiBaseThe Bionic API origin followed by exactly /v1.
clientIdThe client Bionic assigned to your application.
rpOriginYour application's exact HTTPS origin, including any non-default port.
redirectUriThe exact registered callback on rpOrigin. It needs a path, and can't carry a query or fragment.
clientSecretThe current secret. Server-only.
timeoutMsOptional request timeout. Defaults to 10,000 ms; accepts 1 to 120,000.
allowInsecureLoopbackDevelopment only: allows HTTP on localhost, 127.0.0.1 or [::1]. Refused in production.

Wildcard origins and callbacks aren't supported. Nothing in a request or token can change which endpoint is used.

Keep the secret on the server

Never put clientSecret in browser code, cookies, URLs, source control or logs. The client ID, state and nonce are public values; the secret is not.

On this page