Troubleshooting
The most common errors when integrating Block-Auth. Each one shows the message you see, why it happens and how to fix it.
App not active
Message: App not active, contact your admin (403).
Cause: your app is not active yet. An app becomes active only after its domain is validated with a DNS record.
Fix: in the Dashboard, open the app, copy the verification value and add it as a TXT record on your domain. Then press validate. DNS changes can take a few minutes to propagate. See Validate your domain.
Authentication blocked
Message: Authentication blocked: tenant billing grace period ended. (403).
Cause: your company account has a pending payment and the grace period is over. Logins to all its apps are blocked.
Fix: settle the billing from the Dashboard. Logins work again as soon as the account is up to date.
Invalid redirect_uri
Message: Invalid redirect_uri (400), from /api/auth/authorize or /api/auth/token.
Cause: the redirectUri you send doesn't meet the rules.
Fix: make sure that it:
- Uses
httpson your app's validated domain, with exactly its host, port included. - Or, to test on your computer, uses
http://localhost,127.0.0.1or[::1]on any port with the keys of your app's development environment. The production keys never acceptlocalhost. - Has no user, password or
#fragment, and is shorter than 2048 characters. - Is the same in
/api/auth/authorizeand in/api/auth/token.
Local login is limited to the app team
Message: Local login is limited to the app team, on the login screen.
Cause: the login uses your app's development environment, and the user who signed in is not a member of the workspace that owns the app.
Fix: add that user in Settings → Members of the Dashboard, or sign in with a member's identity. Your users never see this on your validated domain.
Invalid code
Message: Invalid code (400), from /api/auth/token.
Cause: the code expired, was already redeemed, or was issued for another redirectUri.
Fix: redeem the code as soon as your callback receives it: it lasts 60 seconds and works only once. Don't redeem it twice, for example on a page reload or a double request. Send the same redirectUri you used to get it.
The login popup does not open
Message: the login opens in the same tab instead of a popup, or Login window closed in the browser console.
Cause: the browser blocked the popup, or your page lost contact with it.
Fix:
- If the browser blocks the popup, the widget opens the login in the same tab: that's expected. Block-Auth sends the user back to the root of your app (
/) and the widget finishes the login on the page where it started. For that, your root must load your frontend with the widget config; if the user lands there signed out, check it. - Open the login straight from the user's click. If your code awaits something before opening it, the browser blocks the popup.
- Serve the page from your app's validated domain.
- If your site sends
Cross-Origin-Opener-Policy: same-origin, change it tosame-origin-allow-popups. Otherwise your page can't receive the result from the popup.
Backend routes do not answer
Message: [Block-Auth] … in the browser console, after the login or when the page loads.
Cause: the widget calls /code, /me and /logout under /auth/blockauth (or your authEndpoint), and one of them is missing, unreachable or answered by your frontend instead of your backend.
Fix: follow the message. It names the route and what to change:
answered 404: add that route to your backend (Backend routes).did not reach your backend: serve the routes from the same origin as your page, or allow your page's origin in your backend's CORS with credentials. The routes must answer without redirects.without JSON: your frontend server answered instead of your backend. Proxy/auth/blockauthto your backend in your dev server (examples for Vite, Next.js and Angular) and in production.could not redeem the code: check your backend logs and theapiKey,apiSecrethash andredirectUriit sends to/api/auth/token.
Content Security Policy
Message: the Block-Auth button shows up without styles and with a broken logo, or errors like Refused to connect to … or Applying inline style violates … Content Security Policy appear in the console.
Cause: your site sends a CSP that doesn't allow the widget's styles, logo or connections. It usually shows up only in production, because the dev server doesn't send that header.
Fix: add the widget's sources to your CSP:
Content-Security-Policy
connect-src 'self' https://wss.block-auth.io wss://wss.block-auth.io;
img-src 'self' data:;
style-src 'self' 'unsafe-inline';
What each one is for is in Go live.
No webhooks arrive
Cause: the URL is ignored, or your endpoint takes too long.
Fix: check that the URL in the Dashboard uses https, is on your app's domain and is not /signout/callback. Answer in under 5 seconds and don't redirect. Each event is sent only once. See Webhooks.
Other API errors
| Message | Cause | Fix |
|---|---|---|
App not found | Wrong apiKey, or apiSecret not hashed. | Send the SHA-256 of the apiSecret, not the secret. |
Unauthorized, valid token required (401) | Missing or expired access token on a data endpoint. | Get a new one with /api/refresh or /api/signin. |
Too many requests (429) | Too many failed credential attempts from your IP. | Fix the credentials and wait the seconds in Retry-After. |
User not signed in APP yet (403) | The user's session for your app ended. | Ask the user to log in again. |
If you still can't solve it, contact Block-Auth support with the exact error message.

