Integration Quickstart
Do these steps once, before installing any SDK. They are the same whether your app uses React, Vue, Angular, PHP, Python, .NET, Node.js or WordPress.
1. Before you start
You only need one Block-Auth identity. You use it to create your company account in the Dashboard, so it takes two short steps:
- Create your identity with the browser extension (Chrome, Firefox) or the mobile app (Google Play). See the Browser Extension Quickstart.
- Register in the Dashboard with that same identity. Open the Dashboard, press Register and sign in with Block-Auth. Your company workspace is created automatically. See the Dashboard Quickstart.
2. Register your application
Each website or app you connect to Block-Auth is an application in the Dashboard, with its own domain, keys and settings.
Open Applications
In the dashboard sidebar, locate the Applications tab. This section is where you manage all your project integrations.

Enter the details
Enter the required information for your application, such as the name, domain, and specific configuration settings. Use the fields to define how Block-Auth will interact with your system. Note: The domain must be "clean"—enter only the host name (e.g., example.com) without the https:// protocol or trailing slashes. The application name can be any valid label you want in the dashboard; it does not depend on DNS, verification tokens, or any other technical validation.

Once completed, you will see the following screen:

One app per environment
The login only works on the domain you validate in step 3, over https. localhost can't be validated with a DNS record, so create one application per environment, each with its own domain and keys:
| Environment | Domain example | How you reach it |
|---|---|---|
| Production | your-app.com | Your live site |
| Development | dev.your-app.com | Your staging server, or your own computer through a tunnel (for example, Cloudflare Tunnel) that serves your local app at that address |
Use the development app's keys in your local .env, and the production app's keys on your live server. Each domain can belong to only one application.
3. Validate your domain
Click "Validate your domain to start using it NOW!" on your application. It shows the steps to prove the domain is yours.

Follow the instructions to copy the unique TXT record and add it to your domain's DNS configuration.
Example with Cloudflare
Open the Cloudflare dashboard for your domain, then go to DNS in the left sidebar and select Records.

On this screen, find the "Add record" button and click it to add your TXT record.

Create the DNS record as follows:
- Select
TXTas the record type. - In
Name, enter your domain as shown in the example below. - In
Content, paste the verification token exactly as copied from the dashboard.

Click the Save button to create the record.
After saving, wait for DNS propagation before verifying the domain (this is a good time to grab a coffee). In most cases this takes 1 to 5 minutes. In some situations it may take longer (up to 1 hour, and in rare cases up to 24 hours).
If you use a different DNS provider, complete the equivalent TXT record process in that platform.
Return to the dashboard and click Verify domain.

Important matching rule
- Use the same host in DNS that you entered in the app Domain field.
Set TXT Name to that host:
- If your domain is root (for example
example.com), Cloudflare may show it as@orexample.com(both are equivalent). - If your domain is a subdomain (for example
app.example.com), use that subdomain host (for exampleapporapp.example.com, depending on your DNS UI).
- If your domain is root (for example
- Set TXT Content to the exact verification token shown by Block-Auth (no changes).
4. Get your keys
Once your application is registered and validated, you can see its credentials. Find your application in the list and click the "Show keys" icon.

Clicking the icon will open a modal displaying your unique API Key and Secret:

- The API Key (
apiKey) is public: it can go in your frontend. - The API Secret (
apiSecret) is private: keep it only in your server's environment variables, never in the browser or in your repository.
5. Set the webhook URL (optional)
Block-Auth can notify your server when a user signs out of your app from Block-Auth or unlinks it, so you can close their session too.
In the Dashboard, open your application and go to Authentication. The third URL field, shown as "When user fails to log in", is where Block-Auth sends these notifications. Your domain is already filled in: type only the path, for example /auth/blockauth/webhook. The SDK guide you pick next tells you which path to use and how to verify the request.
6. Choose your SDK
Your application is ready. Now pick the guide that matches your app and follow it to the end:
| Your app | Guide |
|---|---|
| A frontend in React, Vue or Angular, with your own backend | React, Vue or Angular |
| Pages rendered on the server, in PHP, Python, .NET or Node.js | PHP, Python, .NET, Node.js |
| A WordPress site | WordPress |
Not sure which one? The SDK Quickstart compares them and shows how the pieces connect.

