Registration and configuration
The client, origins and callbacks your integration needs before it can accept a sign-in.
Register a test app
- Open the Bionic developer console. Create a test identity with a passkey or sign in with your existing test passkey.
- Enter your app name, its exact HTTPS origin and its callback URL. For the web starter, use
/auth/bionic/callbackon that origin. - 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.
- 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.
- 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.
| Setting | What it is |
|---|---|
issuer | The hosted Bionic sign-in origin, as an exact HTTPS origin. |
apiBase | The Bionic API origin followed by exactly /v1. |
clientId | The client Bionic assigned to your application. |
rpOrigin | Your application's exact HTTPS origin, including any non-default port. |
redirectUri | The exact registered callback on rpOrigin. It needs a path, and can't carry a query or fragment. |
clientSecret | The current secret. Server-only. |
timeoutMs | Optional request timeout. Defaults to 10,000 ms; accepts 1 to 120,000. |
allowInsecureLoopback | Development 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.